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

fix(client): fix logic multiselection dropdown from not showing #5137

Merged
merged 4 commits into from
Oct 12, 2022

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Oct 12, 2022

Problem

Users were unable to select dropdown options in logic builder if the dropdown option was a multi-select. Bug was introduced in #4778 due to library and code changes in rendering of dropdown.

This PR also fixes UI overflow on dropdown menu on long dropdown options.

Solution

Breaking Changes

  • No - this PR is backwards compatible

Improvements:

  • feat: constrain dropdown item to a single line

Bug Fixes:

  • fix: add floating portal to MultiSelectMenu
  • fix: use minW instead of overflow=hidden to constrain width of logic dropdown

fix bug where menu would not appear on the screen (since its layout is behind due to pos=absolute)
Copy link
Contributor

@justynoh justynoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@karrui karrui merged commit 8720589 into develop Oct 12, 2022
@karrui karrui deleted the fix/logic-overflow-hidden branch October 12, 2022 12:45
@karrui karrui mentioned this pull request Oct 12, 2022
karrui added a commit to opengovsg/camp-design-system that referenced this pull request Oct 20, 2022
karrui added a commit to opengovsg/camp-design-system that referenced this pull request Oct 20, 2022
* fix: update dropdown component to be more reliable

Linked to a bunch of fixes in the upstream FormSG repository, see:
opengovsg/FormSG#5192
opengovsg/FormSG#5137
opengovsg/FormSG#4922
opengovsg/FormSG#4778

* fix: remove unused dependencies
njenwei added a commit to opengovsg/camp-design-system that referenced this pull request Oct 28, 2022
* fix: update vite config to fix downstream build (#103)

* fix: update dropdown component to be more reliable (#106)

* fix: update dropdown component to be more reliable

Linked to a bunch of fixes in the upstream FormSG repository, see:
opengovsg/FormSG#5192
opengovsg/FormSG#5137
opengovsg/FormSG#4922
opengovsg/FormSG#4778

* fix: remove unused dependencies

* feat: don't hardcode toast duration (#107)

* feat: dont hardcode toast duration

* feat: set default toast duration

* chore: bump package version to 0.0.13-beta.5

Co-authored-by: Kar Rui Lau <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants