Skip to content

Commit 3f91e7e

Browse files
authored
fix: TagPicker clears input when value is selected (#284)
1 parent 8aaf3cb commit 3f91e7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

thaw/src/tag_picker/tag_picker.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ impl TagPickerInjection {
174174
options.remove(index);
175175
} else {
176176
options.push(value.clone());
177+
if let Some(input_el) = self.input_ref.get_untracked() {
178+
input_el.set_value("");
179+
}
177180
}
178181
});
179182
self.is_show_listbox.set(false);

0 commit comments

Comments
 (0)