kopia lustrzana https://github.com/shoelace-style/shoelace
Allow type to select to accept symbols
rodzic
a26df1242c
commit
cc7501e530
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue