-
Notifications
You must be signed in to change notification settings - Fork 111
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
feat: add filepicker properties panel #1244
Conversation
19b25a2
to
697c19d
Compare
singleLine: true, | ||
setValue, | ||
variables, | ||
description, |
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.
A regex validation would be good to have here. Especially if you plan to inject it into the HTML. I'm sure you're going to sanitize it somewhere down the line, but it may become confusing for a user if say they use a ; or something and it doesn't work without a properties panel error.
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.
I can add a validation here to check if it's comma separated but I believe there's not big danger since you can't execute JS in the accept
property of the input
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.
The validation here is less about the risk and more about the UX in my view. If there is any risk to be honest it needs to be handled later anyways because of the feel variables.
return editField(field, path, value); | ||
}; | ||
|
||
return ToggleSwitchEntry({ |
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.
Wouldn't it make sense to feel enable this? It might help creating more generic forms.
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.
I'll do it
* feat: add filepicker properties panel * refactor: rework filepicker properties panel
* feat: add filepicker properties panel * refactor: rework filepicker properties panel
* feat: add filepicker properties panel * refactor: rework filepicker properties panel
* feat: add filepicker properties panel * refactor: rework filepicker properties panel
* feat: add filepicker properties panel * refactor: rework filepicker properties panel
Related to #1239
form-js
element or visually changes an existing component.