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:
nicole mikołajczyk
2026-02-21 15:19:45 +01:00
parent ed28f4a17c
commit 1573e54eda
2 changed files with 2 additions and 2 deletions

View File

@ -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={

View File

@ -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={