You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/live_select.ex
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,8 @@ defmodule LiveSelect do
18
18
clicking an option with the mouse.
19
19
20
20
Whenever an option is selected, `LiveSelect` will trigger a standard `phx-change` event in the form. See the "Examples" section
21
-
below for details on how to handle the event.
21
+
below for details on how to handle the event. In `single` and `tags` mode, the input text and the list of selectable options is cleared after selection.
22
+
To preserve both, use the `keep_options_on_select` flag in the assigns.
22
23
23
24
In single mode, if the configuration option `allow_clear` is set, the user can manually clear the selection by clicking on the `x` button on the input field.
24
25
In tags mode, single tags can be removed by clicking on them.
0 commit comments