Skip to content

Commit c1947db

Browse files
committed
Add support for HTML form attribute.
1 parent 492716f commit c1947db

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,11 @@ trait HtmlAttrs {
363363
* elements.
364364
*/
365365
final def `for` = VdomAttr("htmlFor")
366+
367+
/**
368+
* Allows association of an input to a non-ancestoral form.
369+
*/
370+
final def formId = VdomAttr("form")
366371

367372
final def formAction = VdomAttr("formAction")
368373

doc/changelog/1.4.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* Components now resolve to `VdomElement`s without the need for explicit imports.
2323
Typically, this means no more errors when creating router config without importing vdom.
2424
([#509](https://github.com/japgolly/scalajs-react/issues/509))
25+
* Add `formId` HTML attribute for associating an input element with a non-ancestoral form.
2526

2627
* Add `AsyncCallback` which is like a pure version of Scala's `Future` and JS's `Promise`.
2728
Asynchronous code can be composed using `for`-comprehensions as if it's synchronous,

0 commit comments

Comments
 (0)