Skip to content

Commit

Permalink
Restore onBeforeShow
Browse files Browse the repository at this point in the history
  • Loading branch information
jepsar committed Mar 18, 2024
1 parent 2b62ee3 commit 1ecda95
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ PrimeFaces.widget.DatePicker = PrimeFaces.widget.BaseWidget.extend({
if(preShow) {
return $this.cfg.preShow.call($this, inst);
}

// #7457 trigger view change if lazy model is used
if ($this.cfg.lazyModel) {
$this.fireViewChangeEvent($this.getViewDate());
}
};
}

Expand Down Expand Up @@ -185,8 +190,8 @@ PrimeFaces.widget.DatePicker = PrimeFaces.widget.BaseWidget.extend({
//pfs metadata
this.input.data(PrimeFaces.CLIENT_ID_DATA, this.id);

// #7457 #11645 trigger view change if lazy model is used
if (this.cfg.lazyModel) {
// #11645 trigger view change if lazy model is used
if (this.cfg.inline && this.cfg.lazyModel) {
this.updateLazyModel();
}
},
Expand Down

0 comments on commit 1ecda95

Please sign in to comment.