mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-01 17:39:55 +08:00
chore: disable rules in oxlint (#9154)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { type PasswordLimitsFragment } from '@affine/graphql';
|
||||
import { useI18n } from '@affine/i18n';
|
||||
import { type Options, passwordStrength } from 'check-password-strength';
|
||||
import { type FC, useEffect, useMemo } from 'react';
|
||||
import { useCallback, useState } from 'react';
|
||||
import { type FC, useEffect, useMemo, useCallback, useState } from 'react';
|
||||
import { z, type ZodCustomIssue, ZodIssueCode } from 'zod';
|
||||
|
||||
import type { InputProps } from '../../../ui/input';
|
||||
|
||||
@@ -97,7 +97,7 @@ export const DayPicker = memo(function DayPicker(
|
||||
const focused = document.activeElement;
|
||||
|
||||
// check if focused is a date cell
|
||||
if (!focused?.hasAttribute('data-is-date-cell')) return;
|
||||
if (!(focused as HTMLElement | null)?.dataset.isDateCell) return;
|
||||
if (e.shiftKey) return;
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user