-
Notifications
You must be signed in to change notification settings - Fork 31
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
ui: fix validation for multiselect fields and import from list #2848
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,14 +126,14 @@ const LayerArrayFieldTemplate = ({ items = [] }) => { | |
actions={getActionsButtons(item)} | ||
style={{ | ||
border: "1px solid #f0f0f0", | ||
padding: "10px", | ||
padding: "0 10px", | ||
marginBottom: "5px", | ||
backgroundColor: "white", | ||
}} | ||
> | ||
<List.Item.Meta | ||
title={ | ||
<Typography.Text ellipsis={{ rows: 1 }}> | ||
<Typography.Text ellipsis> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried and it seems to work the same, did you notice any issue? For some reason I was getting a warning saying that rows is not a valid property for ellipsis (even though it should be...) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know why but they're excluding |
||
{stringifyItem( | ||
item?.children?.props?.uiSchema?.["ui:options"] ?? null, | ||
item.children.props.formData | ||
|
@@ -147,6 +147,7 @@ const LayerArrayFieldTemplate = ({ items = [] }) => { | |
children: item.children, | ||
}); | ||
}} | ||
style={{ padding: "10px 0" }} | ||
/> | ||
</List.Item> | ||
</ErrorFieldIndicator> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a chance we don't have a
ui:widget
specified, but RJSF still will render the select widgete.g.
do we need to handle better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We won't have those cases from the builder, only maybe for imported or manually created schemas, but I would say we should have those schemas follow the "form builder syntax" instead of implementing more custom checks that can make the code more confusing. What do you think?