Misc fixes to Menus
* Disabled prop not forwarded correctly to MenuButton * Active element not set correctly when Menu is opened * Log message had wrong component name
This commit is contained in:
@@ -78,6 +78,7 @@
|
||||
$: propsWeControl = {
|
||||
id,
|
||||
type: resolveButtonType({ type: $$props.type, as }, $buttonStore),
|
||||
disabled: disabled ? true : undefined,
|
||||
"aria-haspopup": true,
|
||||
"aria-controls": $itemsStore?.id,
|
||||
"aria-expanded": disabled ? undefined : $api.menuState === MenuStates.Open,
|
||||
|
||||
Reference in New Issue
Block a user