mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
Fixes (#749)
* fix(data-table): type DataTableRowId as "any" #530 Fixes #530 * fix(tree-view): make first node focusable if activeId does not match selected * fix(overflow-menu): set type="button" to prevent default submit behavior #554 Fixes #554 * fix(overflow-menu): update semantic attributes in OverflowMenuItem * fix(number-input): do not dispatch change event on initialization #561 Fixes #561 * fix(tree-view): make first focusable node tabbable regardless of active/selected states * fix(date-picker): load rangePlugin dynamically * build(rollup): enable inlineDynamicImports * build(rollup): remove "clipboard-copy" global * fix(overflow-menu): do not render title if using a slot #537 Fixes #537 * fix(select): forward missing focus, input events #501 Fixes #501
This commit is contained in:
parent
ed395e42b7
commit
a1e56bd135
15 changed files with 79 additions and 66 deletions
|
@ -81,14 +81,12 @@
|
|||
}
|
||||
|
||||
onMount(() => {
|
||||
if ($activeNodeId === "") {
|
||||
const firstFocusableNode = ref.querySelector(
|
||||
"li.bx--tree-node:not(.bx--tree-node--disabled)"
|
||||
);
|
||||
const firstFocusableNode = ref.querySelector(
|
||||
"li.bx--tree-node:not(.bx--tree-node--disabled)"
|
||||
);
|
||||
|
||||
if (firstFocusableNode != null) {
|
||||
firstFocusableNode.tabIndex = "0";
|
||||
}
|
||||
if (firstFocusableNode != null) {
|
||||
firstFocusableNode.tabIndex = "0";
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue