Skip to content

Commit

Permalink
MonkeyPatch #12172
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Jun 24, 2024
1 parent 980107f commit 8d0fb7d
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,18 @@ PrimeFaces.utils.registerResizeHandler = function(widget, resizeNamespace, eleme
unbind: unbindResizeHandler
};
};

if (PrimeFaces.widget.DatePicker) {
$.prime.datePicker.prototype.bindWindowResizeListener = function() {
if (this.options.inline || this.options.touchUI || PrimeFaces.env.isTouchable()) {
return;
}

var $this = this;
$(window).on('resize.' + $this.options.id, function() {
if (!$this.options.lazyModel) {
$this.hideOverlay();
}
});
};
};

0 comments on commit 8d0fb7d

Please sign in to comment.