From 6e603799eb16b95e897770ef422c2842ccd9ab7c Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 29 Nov 2021 07:40:01 +0100 Subject: [PATCH] FIX: treats ipad as mobileView for popper positioning (#15091) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * FIX: treats ipad as mobileView for popper positioning * ensures it doesn’t break wizard --- .../javascripts/select-kit/addon/components/select-kit.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/select-kit/addon/components/select-kit.js b/app/assets/javascripts/select-kit/addon/components/select-kit.js index e115ee9b2b1..a32e864b33c 100644 --- a/app/assets/javascripts/select-kit/addon/components/select-kit.js +++ b/app/assets/javascripts/select-kit/addon/components/select-kit.js @@ -861,7 +861,10 @@ export default Component.extend( `#${this.selectKit.uniqueID}-body` ); - const placementStrategy = this?.site?.mobileView ? "absolute" : "fixed"; + const placementStrategy = + this.capabilities?.isIpadOS || this.site?.mobileView + ? "absolute" + : "fixed"; const verticalOffset = 3; this.popper = createPopper(anchor, popper, {