mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-05 21:15:26 +08:00
fix(commandline): cannot use mouse to select first element (@fehmer) (#6563)
This commit is contained in:
parent
485eb222dd
commit
d3fa7c9be2
1 changed files with 2 additions and 2 deletions
|
@ -740,7 +740,7 @@ const modal = new AnimatedModal({
|
|||
|
||||
const dataIndex = parseIntOptional(target?.getAttribute("data-index"));
|
||||
|
||||
if (!dataIndex) return;
|
||||
if (dataIndex === undefined) return;
|
||||
|
||||
lastHover = e.target as HTMLElement;
|
||||
activeIndex = dataIndex;
|
||||
|
@ -752,7 +752,7 @@ const modal = new AnimatedModal({
|
|||
|
||||
const dataIndex = parseIntOptional(target?.getAttribute("data-index"));
|
||||
|
||||
if (!dataIndex) return;
|
||||
if (dataIndex === undefined) return;
|
||||
|
||||
const previous = activeIndex;
|
||||
activeIndex = dataIndex;
|
||||
|
|
Loading…
Add table
Reference in a new issue