File tree Expand file tree Collapse file tree
packages/app-store/routing-forms/components/react-awesome-query-builder/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import type { ChangeEvent } from "react" ;
12import type { Settings , Widgets , SelectWidgetProps } from "react-awesome-query-builder" ;
23// Figure out why routing-forms/env.d.ts doesn't work
34// eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -97,9 +98,12 @@ const widgets: Widgets & { [key in keyof Widgets]: Widgets[key] & { type: string
9798
9899 return (
99100 < EmailField
101+ onChange = { ( e : ChangeEvent < HTMLInputElement > ) => {
102+ const val = e . target . value ;
103+ props . setValue ( val ) ;
104+ } }
100105 containerClassName = "w-full"
101106 className = "dark:placeholder:text-darkgray-600 focus:border-brand dark:border-darkgray-300 dark:text-darkgray-900 block w-full rounded-md border-gray-300 text-sm focus:ring-black disabled:bg-gray-200 disabled:hover:cursor-not-allowed dark:bg-transparent dark:selection:bg-green-500 disabled:dark:text-gray-500"
102- type = "email"
103107 { ...props }
104108 />
105109 ) ;
You can’t perform that action at this time.
0 commit comments