nicolium: search input button should not be tabbable when it duplicates the submit action
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -87,7 +87,7 @@ const SearchInput = React.memo(() => {
|
||||
/>
|
||||
|
||||
<button
|
||||
tabIndex={0}
|
||||
tabIndex={hasValue ? 0 : -1}
|
||||
className='absolute inset-y-0 right-0 flex cursor-pointer items-center px-3 rtl:left-0 rtl:right-auto'
|
||||
onClick={handleClear}
|
||||
title={
|
||||
|
||||
@ -95,7 +95,7 @@ const SearchInput: React.FC<ISearchInput> = ({ className, placeholder, query })
|
||||
/>
|
||||
|
||||
<button
|
||||
tabIndex={0}
|
||||
tabIndex={value ? 0 : -1}
|
||||
className='absolute inset-y-0 right-0 flex cursor-pointer items-center px-3 rtl:left-0 rtl:right-auto'
|
||||
onClick={handleClick}
|
||||
title={
|
||||
|
||||
Reference in New Issue
Block a user