Skip to content

Commit

Permalink
Fix #4015: don't initialize excluded dates on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
avernet committed Apr 4, 2019
1 parent 3686155 commit cf2d2c8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions form-runner/js/src/main/scala/org/orbeon/xbl/Date.scala
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,13 @@ private class DateCompanion extends XBLCompanion {
}

def setExcludedDates(excludedDates: String): Unit = {
datePicker.options.datesDisabled =
excludedDates
.splitTo[js.Array]()
.map(new js.Date(_))
datePicker.update()
if (! iOS) {
datePicker.options.datesDisabled =
excludedDates
.splitTo[js.Array]()
.map(new js.Date(_))
datePicker.update()
}
}

def onChangeDate(): Unit = {
Expand Down

0 comments on commit cf2d2c8

Please sign in to comment.