pl-fe: default to target: _blank for dropdown menu items
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -126,7 +126,7 @@ const DropdownMenuItem = ({ index, item, onClick, autoFocus, onSetTab }: IDropdo
|
|||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
onAuxClick={handleAuxClick}
|
onAuxClick={handleAuxClick}
|
||||||
onKeyPress={handleItemKeyPress}
|
onKeyPress={handleItemKeyPress}
|
||||||
target={item.target}
|
target={typeof item.target === 'string' ? item.target : '_blank'}
|
||||||
title={item.text}
|
title={item.text}
|
||||||
className={
|
className={
|
||||||
clsx('mx-2 my-1 flex cursor-pointer items-center rounded-md px-2 py-1.5 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-800 focus:bg-gray-100 focus:text-gray-800 focus:outline-none black:hover:bg-gray-900 black:focus:bg-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-gray-200 dark:focus:bg-gray-800 dark:focus:text-gray-200', {
|
clsx('mx-2 my-1 flex cursor-pointer items-center rounded-md px-2 py-1.5 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-800 focus:bg-gray-100 focus:text-gray-800 focus:outline-none black:hover:bg-gray-900 black:focus:bg-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-gray-200 dark:focus:bg-gray-800 dark:focus:text-gray-200', {
|
||||||
|
|||||||
Reference in New Issue
Block a user