This pull request introduces the following changes:
Added a showSuggestions property to the ui-root component. This property controls the visibility of the suggestions dropdown in the UI.
Added a setShowSuggestions prop to the Input and Suggestions components. This prop is a function that can be used to programmatically control the visibility of the suggestions dropdown.
Added a showSuggestions prop to the Suggestions component, to better control when the autocompletion list should be shown.
Changed key actions. Now, the return key autocompletes terms when the suggestions dropdown is visible, and submits the command when the dropdown is invisible. Also stopped showing the dropdown when the left arrow key or esc key is pressed, to fit with IDE intellisense.
Testing
Please ensure that the changes work as expected and that the suggestions dropdown can be shown and hidden by the intended keys.
Reviewers
Please review this pull request and provide feedback.
Addresses issue #59
Changes
This pull request introduces the following changes:
showSuggestions
property to theui-root
component. This property controls the visibility of the suggestions dropdown in the UI.setShowSuggestions
prop to theInput
andSuggestions
components. This prop is a function that can be used to programmatically control the visibility of the suggestions dropdown.showSuggestions
prop to theSuggestions
component, to better control when the autocompletion list should be shown.Testing
Please ensure that the changes work as expected and that the suggestions dropdown can be shown and hidden by the intended keys.
Reviewers
Please review this pull request and provide feedback.