diff --git a/zkdoc/release-note b/zkdoc/release-note index 8ad43e8a4f..2c94b1cd59 100644 --- a/zkdoc/release-note +++ b/zkdoc/release-note @@ -43,6 +43,8 @@ ZK 10.1.0 ZK-5777: sendRedirect() doesn't work because of the encoded & ZK-4785: z-errorbox doesn't show in Safari ZK-4962: ZK-3975 regression in mobile + ZK-4964: combobox input should be focused while clicking the drop-down button in Android + ZK-5825: Clicking bandbox button on Android does not focus input * Upgrade Notes + Remove Htmls.encodeJavaScript(), Strings.encodeJavaScript(), Strings.escape() with Strings.ESCAPE_JAVASCRIPT, and replace them with OWASP Java Encoder APIs instead. diff --git a/zul/src/main/resources/web/js/zul/db/Datebox.ts b/zul/src/main/resources/web/js/zul/db/Datebox.ts index 1ac038ac8e..cb081b5e60 100644 --- a/zul/src/main/resources/web/js/zul/db/Datebox.ts +++ b/zul/src/main/resources/web/js/zul/db/Datebox.ts @@ -811,7 +811,7 @@ export class Datebox extends zul.inp.FormatWidget { var btn = this.$n('btn'); if (btn) { - this.domListen_(btn, zk.android ? 'onTouchstart' : 'onClick', '_doBtnClick'); + this.domListen_(btn, 'onClick', '_doBtnClick'); if (this._inplace) this.domListen_(btn, 'onMouseDown', '_doBtnMouseDown'); } @@ -827,7 +827,7 @@ export class Datebox extends zul.inp.FormatWidget { var btn = this.$n('btn'); if (btn) { - this.domUnlisten_(btn, zk.android ? 'onTouchstart' : 'onClick', '_doBtnClick'); + this.domUnlisten_(btn, 'onClick', '_doBtnClick'); if (this._inplace) this.domUnlisten_(btn, 'onMouseDown', '_doBtnMouseDown'); } diff --git a/zul/src/main/resources/web/js/zul/inp/ComboWidget.ts b/zul/src/main/resources/web/js/zul/inp/ComboWidget.ts index 57d3c478de..276a8be8f4 100644 --- a/zul/src/main/resources/web/js/zul/inp/ComboWidget.ts +++ b/zul/src/main/resources/web/js/zul/inp/ComboWidget.ts @@ -694,7 +694,7 @@ export class ComboWidget extends zul.inp.InputWidget { var btn: HTMLElement | undefined; if (btn = this.$n('btn')) { - this.domListen_(btn, zk.android ? 'onTouchstart' : 'onClick', '_doBtnClick'); + this.domListen_(btn, 'onClick', '_doBtnClick'); if (this._inplace) this.domListen_(btn, 'onMouseDown', '_doBtnMouseDown'); } @@ -710,7 +710,7 @@ export class ComboWidget extends zul.inp.InputWidget { var btn = this.$n('btn'); if (btn) { - this.domUnlisten_(btn, zk.android ? 'onTouchstart' : 'onClick', '_doBtnClick'); + this.domUnlisten_(btn, 'onClick', '_doBtnClick'); if (this._inplace) this.domUnlisten_(btn, 'onMouseDown', '_doBtnMouseDown'); }