mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
#1981 - Fixed collapsed search display glitch
This commit is contained in:
parent
ba27830b2f
commit
a5e98a4069
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@
|
||||||
}}"
|
}}"
|
||||||
on:blur
|
on:blur
|
||||||
on:blur="{() => {
|
on:blur="{() => {
|
||||||
if (expanded && value.trim().length === 0) {
|
if (expanded && (value === '' || value == null)) {
|
||||||
expanded = false;
|
expanded = false;
|
||||||
}
|
}
|
||||||
}}"
|
}}"
|
||||||
|
@ -159,7 +159,7 @@
|
||||||
aria-label="{closeButtonLabelText}"
|
aria-label="{closeButtonLabelText}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
class:bx--search-close="{true}"
|
class:bx--search-close="{true}"
|
||||||
class:bx--search-close--hidden="{value === ''}"
|
class:bx--search-close--hidden="{value === '' || value == null}"
|
||||||
on:click
|
on:click
|
||||||
on:click="{() => {
|
on:click="{() => {
|
||||||
value = '';
|
value = '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue