Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(PinInput): form support #1686

Merged
merged 2 commits into from
Jul 9, 2024
Merged

feat(PinInput): form support #1686

merged 2 commits into from
Jul 9, 2024

Conversation

ValeraS
Copy link
Contributor

@ValeraS ValeraS commented Jul 1, 2024

No description provided.

@ValeraS ValeraS requested a review from amje as a code owner July 1, 2024 13:33
@ValeraS ValeraS requested a review from korvin89 as a code owner July 1, 2024 13:35
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

src/components/PinInput/PinInput.tsx Show resolved Hide resolved
@@ -90,3 +90,10 @@ export interface AriaLabelingProps {
*/
'aria-details'?: string;
}

export interface FocusEvents<Target = Element> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export interface FocusEvents<Target = Element> {
export interface FocusEventHandlers<Target = Element> {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But these are events, and handlers are callbacks that you pass to those events.

Copy link
Contributor

@amje amje Jul 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

event is an argument of those handler, see how React named those callbacks: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L2348

@ValeraS ValeraS merged commit b82262e into main Jul 9, 2024
6 checks passed
@ValeraS ValeraS deleted the feat/pin-input branch July 9, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants