Commit 901baba
committed
Fix props for
Unlike in HTML, passing a `selected` attribute to `<option>` is not
supported. Instead, the selected option's value should be passed to
the`value` or `defaultValue` props of the `<select>` element.
Fix #335<select> and <option> elements1 parent 55aa8d2 commit 901baba
6 files changed
Lines changed: 15 additions & 15 deletions
File tree
- apps/website/docs/api/03-html
- packages/react-strict-dom
- src/types
- tests
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5070 | 5070 | | |
5071 | 5071 | | |
5072 | 5072 | | |
5073 | | - | |
5074 | 5073 | | |
5075 | 5074 | | |
5076 | 5075 | | |
| |||
5647 | 5646 | | |
5648 | 5647 | | |
5649 | 5648 | | |
| 5649 | + | |
5650 | 5650 | | |
5651 | 5651 | | |
5652 | 5652 | | |
| |||
5658 | 5658 | | |
5659 | 5659 | | |
5660 | 5660 | | |
| 5661 | + | |
5661 | 5662 | | |
5662 | 5663 | | |
5663 | 5664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 354 | + | |
360 | 355 | | |
361 | 356 | | |
362 | 357 | | |
| |||
367 | 362 | | |
368 | 363 | | |
369 | 364 | | |
| 365 | + | |
370 | 366 | | |
371 | 367 | | |
372 | 368 | | |
| |||
377 | 373 | | |
378 | 374 | | |
379 | 375 | | |
| 376 | + | |
380 | 377 | | |
381 | 378 | | |
382 | 379 | | |
| |||
0 commit comments