Skip to content

Commit 2da7dfa

Browse files
committed
work
1 parent a90e54c commit 2da7dfa

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

packages/frontend/navi/src/control/demos/validation/control_validity_demo.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -316,15 +316,16 @@ <h2 style={{ fontSize: "0.9rem", color: "#555" }}>
316316
<Input
317317
ref={readonlyRef}
318318
name="config"
319+
id="config"
319320
value="initial"
320321
readOnly
321322
/>
322323
</Field>
323324
<Box flex spacing="s" style={{ flexWrap: "wrap" }}>
324325
<Button
325326
command="--navi-update"
327+
commandFor="config"
326328
value="updated"
327-
navi-target="[name=config]"
328329
>
329330
Set "updated" (blocked)
330331
</Button>
@@ -347,22 +348,19 @@ <h2 style={{ fontSize: "0.9rem", color: "#555" }}>
347348
<Input
348349
ref={validatableRef}
349350
name="code"
350-
value="hello"
351+
id="code"
352+
defaultValue="hello"
351353
minLength="5"
352354
/>
353355
</Field>
354356
<Box flex spacing="s" style={{ flexWrap: "wrap" }}>
355-
<Button
356-
command="--navi-update"
357-
value="ab"
358-
navi-target="[name=code]"
359-
>
357+
<Button command="--navi-update" commandFor="code" value="ab">
360358
Set "ab" (invalid)
361359
</Button>
362360
<Button
363361
command="--navi-update"
364-
value="hello"
365-
navi-target="[name=code]"
362+
commandFor="code"
363+
defaultValue="hello"
366364
>
367365
Set "hello" (valid)
368366
</Button>

0 commit comments

Comments
 (0)