Commit aba43cb
authored
Fix issues with object-spreading boolean and direct props (#145)
* add test for spread boolean props
* Fix issues with object-spreading boolean and direct props
Previously,
- `<input ${{ disabled: true }}>` added a `disabled="true"` attribute.
- `<input ${{ disabled: false }}>` added a `disabled="false"` attribute.
- `<input ${{ indeterminate: true }}>` added an `indeterminate="true"` attribute.
Now:
- `<input ${{ disabled: true }}>` adds a `disabled="disabled"` attribute.
- `<input ${{ disabled: false }}>` does not add a `disabled` attribute.
- `<input ${{ indeterminate: true }}>` sets `.indeterminate = true` instead of adding an attribute.1 parent 7088087 commit aba43cb
3 files changed
+30
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
17 | | - | |
| 18 | + | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
24 | 47 | | |
25 | 48 | | |
26 | 49 | | |
| |||
0 commit comments