Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adjust DynamicPageComponent #3445

Merged
2 changes: 1 addition & 1 deletion src/shared/ResourceForm/components/ModeSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function ModeSelector({ mode, setMode, isDisabled = false }) {
<SegmentedButton
className="mode-selector__content"
onSelectionChange={event => {
const mode = event.detail.selectedItem.getAttribute('data-mode');
const mode = event.detail.selectedItems[0].getAttribute('data-mode');
setMode(mode);
if (preferencesViewType === 'MODE_DEFAULT') {
setEditViewMode({
Expand Down
3 changes: 3 additions & 0 deletions src/shared/ResourceForm/components/ResourceForm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ form .resource-form {
box-sizing: border-box;
padding: 0 1rem;

ui5-form-item::part(layout) {
grid-template-columns: none;
}
form {
overflow: hidden;
flex-grow: 1;
Expand Down
Loading
Loading