Skip to content

Commit

Permalink
AutocompleteInput: allow user-defined values
Browse files Browse the repository at this point in the history
bokeh 2.3.0 introduces a new `restrict` keyword (default: True).
Setting it to False allows users to enter values that are not present in
the list of completions.
  • Loading branch information
ltalirz committed Sep 16, 2020
1 parent 4e3439d commit db027e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions panel/widgets/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ class AutocompleteInput(Widget):

case_sensitive = param.Boolean(default=True)

restrict = param.Boolean(default=True)

_widget_type = _BkAutocompleteInput

_rename = {'name': 'title', 'options': 'completions'}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def run(self):
########## dependencies ##########

install_requires = [
'bokeh >=2.1',
'bokeh >=2.3.0dev1',
'param >=1.9.3',
'pyviz_comms >=0.7.4',
'markdown',
Expand Down

0 comments on commit db027e6

Please sign in to comment.