Allow type to select to accept symbols

This commit is contained in:
Cory LaViska
2020-08-12 08:21:39 -04:00
parent a26df1242c
commit cc7501e530
2 changed files with 2 additions and 4 deletions

View File

@@ -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

View File

@@ -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) {