From bedb6b8bb90e021a60e47a93709d6f48e0bd75c6 Mon Sep 17 00:00:00 2001 From: Lukas Senionis Date: Wed, 26 Oct 2022 15:19:16 +0300 Subject: [PATCH] fix(Field): add types for focusing field (#41) --- src/deck-components/Field.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/deck-components/Field.tsx b/src/deck-components/Field.tsx index 9ac37d5..9c2aab5 100644 --- a/src/deck-components/Field.tsx +++ b/src/deck-components/Field.tsx @@ -18,6 +18,9 @@ export interface FieldProps extends HTMLAttributes, FooterLegend highlightOnFocus?: boolean; indentLevel?: number; verticalAlignment?: 'center' | 'none'; // Alligns inline label with children + focusable?: boolean; // Allows to get focus without any focusable children or on* callbacks + onActivate?: (e: CustomEvent | MouseEvent) => void; + onClick?: (e: CustomEvent | MouseEvent) => void; } export const Field = findModuleChild((m) => {