Allow type to select to accept symbols

pull/186/head
Cory LaViska 2020-08-12 08:21:39 -04:00
rodzic a26df1242c
commit cc7501e530
2 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

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

Wyświetl plik

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