Skip to content

Commit a2ddca6

Browse files
authored
No input sync on project create view (#171)
1 parent 834dbd6 commit a2ddca6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ui/MakeSelectProject.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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)}

ui/components/Input.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

6566
export 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
);

0 commit comments

Comments
 (0)