-
Notifications
You must be signed in to change notification settings - Fork 12
Patch: Tag input/picker fixes #1238
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
Patch: Tag input/picker fixes #1238
Conversation
…lePicker height not matching tags
jorgenherje
left a comment
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.
Nice adjustments!
Some minor comments:
-
As discussed, the outline "blinks" when opening dropdown and selecting a new tag. As it looses focus when clicking in dropdown, and retain focus when input field becomes active again.
-
I still get some issues with autoscroll when hovering a the bottom of the virtualization component (I get the same issue for standard picker in MyModule2):
https://github.com/user-attachments/assets/761b561a-ffeb-45e0-aaaf-b7664b0273a6 -
See further comments below
frontend/src/framework/components/EnsemblePicker/private-components/ensembleTag.tsx
Outdated
Show resolved
Hide resolved
frontend/src/framework/components/EnsemblePicker/private-components/ensembleTag.tsx
Outdated
Show resolved
Hide resolved
jorgenherje
left a comment
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.
Nice work!
Fixes assorted smaller issues in the
TagPicker,TagInputandEnsemblePickercomponentsTagInputpadding classesinputPropsproperty in theTagPickercomponentEnsemblePickerto match tag heightdropdownMinWidthprop toTagPicker. Defaults to 120pxTagPickerwould reset list focus too easilyTagInputTagPickerdropdown would scrollI just tweaked the padding to make the list perfectly fit the amount of items. A more proper fix should separate hover and mouse focus movement but I want to wait with that until the hooks introduced in Updated virtualization logic to avoid re-rendering #1075 are availableTagInput(clicking the entire component root, instead of just the input field). The input field will also wrap around a little earlier now.