File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ export function MakeSelectProject() {
6969 < p > Pick a name for this project to get started.</ p >
7070 < div className = "form-row" >
7171 < Input
72+ noDelay
7273 value = { projectNameTmp }
7374 label = "Project name"
7475 onChange = { ( v ) => setProjectNameTmp ( v ) }
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export interface InputProps
6060 defaultValue ?: string ;
6161 tooltip ?: React . ReactNode ;
6262 invalid ?: React . ReactNode ;
63+ noDelay ?: boolean ;
6364}
6465
6566export function Input ( {
@@ -70,6 +71,7 @@ export function Input({
7071 label,
7172 autoWidth,
7273 type,
74+ noDelay,
7375 defaultValue,
7476 tooltip,
7577 ...props
@@ -79,7 +81,7 @@ export function Input({
7981 const [ localValue , setLocalValue , flushLocalValue ] = useDebouncedLocalState (
8082 value ,
8183 onChange ,
82- type !== 'checkbox' && type !== 'radio' ,
84+ type !== 'checkbox' && type !== 'radio' && ! noDelay ,
8385 INPUT_SYNC_PERIOD ,
8486 defaultValue
8587 ) ;
You can’t perform that action at this time.
0 commit comments