mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
Merge branch 'master' into rewrite-tyepscript-definitions
This commit is contained in:
commit
56718c633d
6 changed files with 81 additions and 5 deletions
|
@ -51,6 +51,9 @@
|
|||
});
|
||||
|
||||
function focus(element) {
|
||||
if(selectorPrimaryFocus == null) {
|
||||
return
|
||||
}
|
||||
const node =
|
||||
(element || innerModal).querySelector(selectorPrimaryFocus) || buttonRef;
|
||||
if (node != null) node.focus();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue