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
# The Browser will _unset_ the previously selected radio button
@@ -778,10 +778,10 @@ def set(
778
778
"""
779
779
# Having an arr of size 0 is allowed. Will uncheck everything
780
780
ifnotisinstance(selected, list):
781
-
raiseTypeError("`selected` must be a list or tuple")
781
+
raiseTypeError("`selected=` must be a list or tuple")
782
782
foriteminselected:
783
783
ifnotisinstance(item, str):
784
-
raiseTypeError("`selected` must be a list of strings")
784
+
raiseTypeError("`selected=` must be a list of strings")
785
785
786
786
# Make sure the selected items exist
787
787
# Similar to `self.expect_choices(choices = selected)`, but with
@@ -1187,25 +1187,139 @@ def set(
1187
1187
"""
1188
1188
Sets the selected option(s) of the input selectize.
1189
1189
1190
+
Selected items are altered as follows:
1191
+
1. Click on the selectize input to open the dropdown.
1192
+
2. Starting from the first selected item, each position in the currently selected list should match `selected`. If the item is not a match, remove it and try again.
1193
+
3. Add any remaining items in `selected` that are not currently selected by clicking on them in the dropdown.
1194
+
4. Press the `"Escape"` key to close the dropdown.
1195
+
1190
1196
Parameters
1191
1197
----------
1192
1198
selected
1193
-
The value(s) of the selected option(s).
1199
+
The [ordered] value(s) of the selected option(s).
1194
1200
timeout
1195
1201
The maximum time to wait for the selection to be set. Defaults to `None`.
0 commit comments