File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
core/src/main/scala/torstenrudolf/scalajs/react/formbinder Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ def commonSettings: Project => Project =
3
3
_.enablePlugins(ScalaJSPlugin )
4
4
.settings(
5
5
organization := " com.github.torstenrudolf.scalajs-react-form-binder" ,
6
- version := " 0.0.17 " ,
6
+ version := " 0.0.18-SNAPSHOT " ,
7
7
homepage := Some (url(" https://github.com/torstenrudolf/scalajs-react-form-binder" )),
8
8
licenses += (" MIT" , url(" https://opensource.org/licenses/MIT" )),
9
9
scalaVersion := " 2.11.8" ,
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ trait Form[DataModel] {
9
9
10
10
def validatedFormData : Option [DataModel ]
11
11
12
+ def validatedFormDataNew (reValidate : Boolean ): Option [DataModel ]
13
+
12
14
def field [T ](fd : FormFieldDescriptor [T ]): ReactNode
13
15
14
16
def globalValidationResult : Option [ValidationResult ]
Original file line number Diff line number Diff line change @@ -502,6 +502,11 @@ trait FormAPI[T] extends Form[T] {
502
502
_validatedFormData
503
503
}
504
504
505
+ override def validatedFormDataNew (reValidate : Boolean ): Option [T ] = {
506
+ if (reValidate) validatedFormData
507
+ else _validatedFormData
508
+ }
509
+
505
510
private def allFieldValidationResults : List [ValidationResult ] = allFormFieldBindingsWithUnderlyingDataField.map(
506
511
_.currentValidationResult match {
507
512
case Success (vr) => vr
You can’t perform that action at this time.
0 commit comments