fix(toolbar-search): input should expand if value is programmatically set

Fixes #673
This commit is contained in:
Eric Liu 2021-12-30 07:48:49 -08:00
commit 487c878c92

View file

@ -35,6 +35,7 @@
ref.focus(); ref.focus();
} }
$: expanded = !!value.length;
$: classes = [ $: classes = [
expanded && "bx--toolbar-search-container-active", expanded && "bx--toolbar-search-container-active",
persistent persistent