We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is an edge case in the Search component:
expandable=true
Screenshot:
This is due to the fact that the visibility of the clear button is decided by value === '':
value === ''
carbon-components-svelte/src/Search/Search.svelte
Line 162 in ba27830
However the search is collapsed when the trimmed value is empty:
Lines 142 to 146 in ba27830
Possible fixes:
expanded
The first version sounds the most consistent with API to me. Users can choose to clear the value if its empty on blur manually.
I can do a PR if this sounds good.
The text was updated successfully, but these errors were encountered:
Yes – PRs always welcome.
Sorry, something went wrong.
carbon-design-system#1981 - Fixed collapsed search display glitch
a5e98a4
216d5a3
Successfully merging a pull request may close this issue.
There is an edge case in the Search component:
expandable=true
Screenshot:
This is due to the fact that the visibility of the clear button is decided by
value === ''
:carbon-components-svelte/src/Search/Search.svelte
Line 162 in ba27830
However the search is collapsed when the trimmed value is empty:
carbon-components-svelte/src/Search/Search.svelte
Lines 142 to 146 in ba27830
Possible fixes:
expanded
is false. Again this might hide the search when the contained value is whitespace.The first version sounds the most consistent with API to me. Users can choose to clear the value if its empty on blur manually.
I can do a PR if this sounds good.
The text was updated successfully, but these errors were encountered: