mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
Allow type to select to accept symbols
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
- Fixed a bug where button groups with tooltips experienced an odd spacing issue in Safari
|
||||
- Fixed a bug where scrolling in dropdowns/selects didn't work properly on Windows (special thanks to [Trendy](http://github.com/trendy) for helping troubleshoot!)
|
||||
- Fixed a bug where selecting a menu item in a dropdown would cause Safari to scroll
|
||||
- Fixed a bug where type to select wouldn't accept symbols
|
||||
- Moved scrolling logic from `sl-menu` to `sl-dropdown`
|
||||
|
||||
## 2.0.0-beta.12
|
||||
|
||||
@@ -168,10 +168,7 @@ export class Menu {
|
||||
}
|
||||
}
|
||||
|
||||
// Handle type-to-select behavior when non-control characters are entered
|
||||
if (event.key === ' ' || /^[\d\w]$/i.test(event.key)) {
|
||||
this.typeToSelect(event.key);
|
||||
}
|
||||
this.typeToSelect(event.key);
|
||||
}
|
||||
|
||||
handleMouseDown(event: MouseEvent) {
|
||||
|
||||
Reference in New Issue
Block a user