-
Notifications
You must be signed in to change notification settings - Fork 96
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
NEW SearchableDropdownField #1625
NEW SearchableDropdownField #1625
Conversation
f06f6e2
to
ba1afc1
Compare
3b564c8
to
b58b63c
Compare
Design feedback:
.ss-searchable-dropdown-field__multi-value__remove .ss-searchable-dropdown-field__multi-value .ss-searchable-dropdown-field__multi-value .ss-searchable-dropdown-field__multi-value__remove:focus, .ss-searchable-dropdown-field__multi-value__remove:hover |
b58b63c
to
59f23d7
Compare
Design review implementation has been approved by internal design team |
59f23d7
to
cc38b64
Compare
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.
Code looks broadly good.
Haven't fully tested it locally yet - will wait for the framework changes.
One thing I did notice: when I type to search, it swaps the dirty state of the form, making it look like there are unsaved changes.
IIRC we had that problem with tagfield somewhat recently as well.
cc38b64
to
19b6ab5
Compare
I think I've fixed the issue with the fix the dirty state on search |
If I select an option and then clear that option (without saving inbetween), the page still thinks I have unsaved changes.
|
I've tried really hard to fix this though I just cannot. There's a 'changed' class that gets added by jquery.changetracker to an The issue seems be that Setting a |
592e82a
to
d077dfd
Compare
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.
Please add behat tests - especially for silverstripe/silverstripe-framework#11057 (comment)
d077dfd
to
c63d013
Compare
We don't have behat tests for FormFields in admin, instead we use jest tests. This PR has jest tests. For the 'clearable' functionality called out in silverstripe/silverstripe-framework#11057 (comment) - that's functionality on react-select so all the PHP code is doing is passing a prop to it |
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.
Looks good, works great locally.
Issue #1618
This code is adapted from silverstripe/tagfield
Framework PR