mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: fix tab focus requires 2 clicks
This commit is contained in:
committed by
Abdullah Atta
parent
6e6b793568
commit
d00c35bdaf
@@ -498,15 +498,11 @@ function Tab(props: TabProps) {
|
||||
e.stopPropagation();
|
||||
if (isTemporary) onKeepOpen();
|
||||
}}
|
||||
onMouseDown={(e) => {
|
||||
if (e.button == 1) {
|
||||
e.preventDefault();
|
||||
onClose();
|
||||
}
|
||||
onAuxClick={(e) => {
|
||||
if (e.button == 1) onClose();
|
||||
}}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
onFocus();
|
||||
onMouseUp={(e) => {
|
||||
if (e.button == 0) onFocus();
|
||||
}}
|
||||
{...listeners}
|
||||
{...attributes}
|
||||
|
||||
Reference in New Issue
Block a user