mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
chore(components): change tabindex name and value for string
This commit is contained in:
parent
eada54c69d
commit
b9d2676f87
5 changed files with 19 additions and 19 deletions
|
@ -10,8 +10,8 @@
|
|||
import searchStore from '../searchStore';
|
||||
import ActionSearchResult from './ActionSearchResult.svelte';
|
||||
|
||||
let searchTabIndex = 0;
|
||||
let closeTabIndex = -1;
|
||||
let searchTabIndex = '0';
|
||||
let closeTabIndex = '-1';
|
||||
let inputSearchField = undefined;
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
|
@ -46,11 +46,11 @@
|
|||
}
|
||||
|
||||
$: if (searchIsActive) {
|
||||
searchTabIndex = -1;
|
||||
closeTabIndex = 0;
|
||||
searchTabIndex = '-1';
|
||||
closeTabIndex = '0';
|
||||
} else {
|
||||
searchTabIndex = 0;
|
||||
closeTabIndex = -1;
|
||||
searchTabIndex = '0';
|
||||
closeTabIndex = '-1';
|
||||
}
|
||||
|
||||
$: showResults = $searchStore ? true : false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue