Skip to content

Commit

Permalink
updateAirDateInput: clear selected date when new value
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Sep 13, 2024
1 parent 73088e2 commit 9b9aef6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: shinyWidgets
Title: Custom Inputs Widgets for Shiny
Version: 0.8.6.9100
Version: 0.8.6.9200
Authors@R: c(
person("Victor", "Perrier", email = "victor.perrier@dreamrs.fr", role = c("aut", "cre", "cph")),
person("Fanny", "Meyer", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion inst/packer/air-datepicker.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions srcjs/inputs/air-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ $.extend(AirDatepickerBindings, {
newdate[i] = as_date({date: value[i], tz: options.tz});
}
var dp = AirDatepickerBindings.store[el.id];
dp.clear();
dp.selectDate(newdate);
},
subscribe: (el, callback) => {
Expand Down

0 comments on commit 9b9aef6

Please sign in to comment.