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

#1074 fix bug when editing filters #1123

Merged
merged 1 commit into from
Jan 14, 2024

Conversation

junaidzm13
Copy link
Contributor

  • onSelectionChange on ExpandoCombobox only gets called when a selection changes, which cause issues when someone tries to select the already selected item from the list dropdown. With this change I've provided a onListItemSelect handler which is same as onSelect on List.
  • Also, text selection used to "appear" blank in ExpandoCombobox because the background & text both used to change to white on selection. Changed the background color on selection to a shade of blue.

Copy link

netlify bot commented Jan 12, 2024

Deploy Preview for papaya-valkyrie-395400 canceled.

Name Link
🔨 Latest commit f49eb81
🔍 Latest deploy log https://app.netlify.com/sites/papaya-valkyrie-395400/deploys/65a106929ab7bc00093edbbb

@@ -207,7 +213,7 @@ export const ComboBox = forwardRef(function Combobox<
highlightedIndex={highlightedIndex}
itemTextHighlightPattern={String(inputProps.value) || undefined}
listHandlers={listHandlers}
onSelectionChange={onSelectionChange}
onSelectionChange={onSelectionChange} // not really needed, since onClick in listHandlers will be used instead.
Copy link
Contributor Author

@junaidzm13 junaidzm13 Jan 12, 2024

Choose a reason for hiding this comment

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

@heswell let me know if I should get rid of this, I've checked onSelectionChange is not used if listHandlers is not undefined. And it is not undefined here since we use useList hook to get these for Combobox.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, lets get rid of it

- onSelectionChange on ExpandoCombobox only gets called when a
  selection changes, which cause issues when someone tries to select
  the already selected item from the list dropdown. With this change
  I've provided a onListItemSelect handler which is same as onSelect
  on Lists.
- Also, text selection used to `appear` blank in ExpandoCombobox
  because the background & text both used to change to white on
  selection. Changed the background color on selection to a shade
  of blue.
@junaidzm13 junaidzm13 force-pushed the 1074-fix-edit-filter-bug branch from fe18d5c to f49eb81 Compare January 12, 2024 09:29
@heswell heswell merged commit 75a6b1b into finos:main Jan 14, 2024
8 checks passed
@junaidzm13 junaidzm13 deleted the 1074-fix-edit-filter-bug branch January 23, 2024 03:25
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