Skip to content

Commit b5a7ab0

Browse files
committed
update docs
1 parent f15cd75 commit b5a7ab0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/live_select.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ defmodule LiveSelect do
1818
clicking an option with the mouse.
1919
2020
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.
2223
2324
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.
2425
In tags mode, single tags can be removed by clicking on them.

0 commit comments

Comments
 (0)