Skip to content

Commit

Permalink
Add passthrough of the name property in TextArea (#1654)
Browse files Browse the repository at this point in the history
  • Loading branch information
mc-0bit committed Sep 2, 2022
1 parent ee8b783 commit d3dcbe8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/prompt_toolkit/widgets/base.py
Expand Up @@ -195,6 +195,7 @@ def __init__(
preview_search: FilterOrBool = True,
prompt: AnyFormattedText = "",
input_processors: Optional[List[Processor]] = None,
name: str = "",
) -> None:

if search_field is None:
Expand Down Expand Up @@ -226,6 +227,7 @@ def __init__(
auto_suggest=DynamicAutoSuggest(lambda: self.auto_suggest),
accept_handler=accept_handler,
history=history,
name=name,
)

self.control = BufferControl(
Expand Down

0 comments on commit d3dcbe8

Please sign in to comment.