From 38ed9db7563361766c65075d973c242d4a18fc7c Mon Sep 17 00:00:00 2001 From: jamsonchan Date: Wed, 21 Feb 2024 10:23:32 +0800 Subject: [PATCH] ZK-5636: fail to toggle grid's detail on iPad/iPhone --- .../resources/web/js/zk/ext/inputdevicecapabilities-polyfill.js | 2 +- zkdoc/release-note | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/zk/src/main/resources/web/js/zk/ext/inputdevicecapabilities-polyfill.js b/zk/src/main/resources/web/js/zk/ext/inputdevicecapabilities-polyfill.js index b3a6dc4c878..6af84f1a5fc 100644 --- a/zk/src/main/resources/web/js/zk/ext/inputdevicecapabilities-polyfill.js +++ b/zk/src/main/resources/web/js/zk/ext/inputdevicecapabilities-polyfill.js @@ -87,7 +87,7 @@ return null; // touch events may not be supported by this browser at all (eg. IE desktop). - if (!('TouchEvent' in global)) + if (!('TouchEvent' in globalThis)) // cannot use global here for webpack imports. return nonTouchDevice; // Touch events are always generated from devices that fire touch events. diff --git a/zkdoc/release-note b/zkdoc/release-note index 269ff9f9bdd..8f8fd0cbbc4 100644 --- a/zkdoc/release-note +++ b/zkdoc/release-note @@ -44,6 +44,7 @@ ZK 10.0.0 ZK-5639: stepbox wrong color update ZK-5635: textbox cannot focus on iPad/iPhone ZK-5647: Wrong groupbox layout on touch screen + ZK-5636: fail to toggle grid's detail on iPad/iPhone * Upgrade Notes + Upgrade commons-fileupload to commons-fileupload2-javax 2.0.0-M2 and commons-io to 2.13.0 to support jakarta-friendly uploads