Skip to content

Commit

Permalink
need key for multiple instances too
Browse files Browse the repository at this point in the history
  • Loading branch information
norton120 committed Sep 16, 2024
1 parent 3ab7975 commit b83789a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions textcomplete/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def textcomplete(
dynamic_width: bool = True,
dropdown_style: str = "",
args: Optional[Tuple] = tuple(),
key: Optional[str] = None,
) -> Optional[TextcompleteResult]:
# Call through to our private component function. Arguments we pass here
# will be sent to the frontend, where they'll be available in an "args"
Expand Down Expand Up @@ -163,6 +164,7 @@ def textcomplete(
strategies=[strategy.to_dict() for strategy in strategies],
dropdown_option=dropdown_option,
stop_enter_propagation=stop_enter_propagation,
key=key,
)

if on_select and result:
Expand Down

0 comments on commit b83789a

Please sign in to comment.