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

feat: replace variable picker dropdown #2344 #2787

Merged
merged 14 commits into from
Mar 6, 2024
Merged

Conversation

Julusian
Copy link
Member

@Julusian Julusian commented Mar 6, 2024

This replaces uses of https://github.com/zurb/tribute which looks like it might no longer be maintained, and is not very react friendly with some custom wrapping around react-select, which we already use for simple dropdown fields.

This makes the ui a bit more consistent, as it matches the look of elsewhere, and avoids the bug of #2344 by locking the dropdown to always be below the text field, and to always be the full width
image

It is possible that there are some unintentional quirks in this new implementation, as some of the features of react-select have to be bypassed, and some functionality you would expect from this kind of 'suggestion' input have to be implemented around what react-select offers.

But as a bonus of this, we have a bit more control over some of the behaviour, which resolves some existing quirks around the picker not opening if there is not a space in front of the $( sequence.

@Julusian Julusian marked this pull request as ready for review March 6, 2024 23:32
@Julusian Julusian merged commit 170c95f into main Mar 6, 2024
12 of 13 checks passed
@Julusian Julusian deleted the feat/variable-picker branch March 6, 2024 23:33
@Julusian Julusian added this to the v3.3 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant