diff --git a/addons/web/static/src/core/datepicker/datepicker.js b/addons/web/static/src/core/datepicker/datepicker.js index a9c3d8a27c3..bb101000db8 100644 --- a/addons/web/static/src/core/datepicker/datepicker.js +++ b/addons/web/static/src/core/datepicker/datepicker.js @@ -13,7 +13,7 @@ import { import { getActiveHotkey } from "@web/core/hotkeys/hotkey_service"; import { localization } from "@web/core/l10n/localization"; import { useAutofocus } from "@web/core/utils/hooks"; -import { isIOS } from "@web/core/browser/feature_detection"; +import { isMobileOS } from "@web/core/browser/feature_detection"; import { Component, @@ -247,7 +247,7 @@ export class DatePicker extends Component { * @param {Event} ev */ onWindowScroll(ev) { - if (!isIOS() && ev.target !== this.inputRef.el) { + if (!isMobileOS() && ev.target !== this.inputRef.el) { this.bootstrapDateTimePicker("hide"); } }