Commit 850efcd
John P. rouillard
refactor: use removeAttribute for onclick rather than seting to null
Per:
https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute
You should use removeAttribute() instead of setting the attribute
value to null either directly or using setAttribute(). Many attributes
will not behave as expected if you set them to null.1 parent d93bed3 commit 850efcd
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
0 commit comments