You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using AutoComplete, if the overlay with options is not in focus when the enter key is pressed, it triggers the file browse. The browsers Auto-complete overlay is also present causing it to occur rather frequently
Possible Solution Suggestions
[TdFileUpload] Provide the keyboard binding in file upload as an optional feature
I think this happens because they are used inside a form, so when you press enter anywhere, the form wants to send an event to the first focusable button in the form. (HTML5 form submit native functionality)
The fix would be to add type="button" in those buttons (inside the components), so the form doesnt assume they are type="submit"
Currently using TdChips and TdFileUpload in the same page causes some interesting behaviour
Chips:
To select a chip when using autocomplete, the enter key is needed to select a chip and also to remove chips. the code is in the following places
https://github.com/Teradata/covalent/blob/develop/src/platform/core/chips/autocomplete/autocomplete.component.html#L15
https://github.com/Teradata/covalent/blob/develop/src/platform/core/chips/chips.component.html#L7
File Upload
The file upload Component also uses the enter key to initiate the file selection process. The code is present here
https://github.com/Teradata/covalent/blob/develop/src/platform/core/file/file-upload.component.html#L7
When using AutoComplete, if the overlay with options is not in focus when the enter key is pressed, it triggers the file browse. The browsers Auto-complete overlay is also present causing it to occur rather frequently
Possible Solution Suggestions
The text was updated successfully, but these errors were encountered: