Skip to content

Commit 6a67b83

Browse files
committed
spellCheck attr should only accept boolean
Closes #758
1 parent 9374772 commit 6a67b83

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/src/main/scala/japgolly/scalajs/react/vdom/HtmlAttrs.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ trait HtmlAttrs {
17571757
* This enumerated attribute defines whether the element may be checked for
17581758
* spelling errors.
17591759
*/
1760-
final def spellCheck = VdomAttr("spellCheck")
1760+
final def spellCheck = VdomAttr[Boolean]("spellCheck")
17611761

17621762
/**
17631763
* If the value of the type attribute is image, this attribute specifies a URI

doc/changelog/1.7.5.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
^.onKeyDown ==> handler2,
1111
```
1212

13+
* The `spellCheck` attribute now only accepts booleans.
14+

0 commit comments

Comments
 (0)