-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<InlineAutocomplete>
: Add onSelectSuggestion()
callback to `<Inli…
…neAutocomplete />` to allow execution of additional code after an autocomplete item was selected. (#3647) * Allows to customize the replaced text onCommit * Cleanup suggestion overwrite as this can be done by suggestion.value * Cleanup comment * Add changeset * Add storyboard * Update src/drafts/InlineAutocomplete/InlineAutocomplete.tsx Co-authored-by: Ian Sanders <iansan5653@github.com> * Introduce SelectSuggestionsEvent * Update src/drafts/InlineAutocomplete/InlineAutocomplete.tsx Co-authored-by: Ian Sanders <iansan5653@github.com> * Update InlineAutocomplete.docs.json * Update docs * Update docs * Update docs --------- Co-authored-by: Ian Sanders <iansan5653@github.com> Co-authored-by: Mike Perrotti <mperrotti@github.com>
- Loading branch information
1 parent
d759fd3
commit e480a4a
Showing
5 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@primer/react': minor | ||
--- | ||
|
||
Adds onSelectSuggestion callback to <InlineAutocomplete /> | ||
|
||
<!-- Changed components: _none_ --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters