0

bug with intboxes on mobile devices

asked 2020-12-04 17:14:37 +0800

DennisLWL gravatar image DennisLWL
31

Hello,

i maybe found a bug in intboxes on mobile devices.

If u create and intbox with a maxlenth value, on desktop browsers it works like expected. But on mobile devices i can enter way more numbers then the maxlength value is (Its not working at all).

I know that maxlength doesnt exist for 'input type="number"', but on desktop a 'textbox type="text"' is generated, sadly im unable to see, what is generated on my mobile device. However, in addition, if u go in "desktop view" on your mobile device, u will also be able to enter charakters, that arent numbers.... Tested on Android: Chrome and Mozilla, and IPad: Safari.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-12-07 17:54:38 +0800

cor3000 gravatar image cor3000
6280 2 7

sadly im unable to see, what is generated on my mobile device

you can simulate the mobile rendering e.g. in chrome (and other browsers) by enabling the mobile emulation mode in the developer tools:

image description

and in fact it creates an input type="number" for a mobile device

link publish delete flag offensive edit

Comments

Ah, yes thats true. But still, if u are on a Mobile Device and activate "Desctop View" you can enter charackters. And further i can also enter more then the maxlength value.

DennisLWL ( 2020-12-07 18:21:49 +0800 )edit

in my tests that's only try for a new ipad (running on ipadOS) which doesn't allow to identify whether it's a mobile or desktop device in a reasonable way. ZK already adapted the code to detect it as a mobile device even when it announces to be a desktop device ... not sure the opposite is correct.

cor3000 ( 2020-12-14 15:01:47 +0800 )edit

in any case during the constraint validation the too long value is rejected correctly and an error message is displayed

cor3000 ( 2020-12-14 15:02:55 +0800 )edit

related (conflicting) issues are ZK-4719 and ZK-4451, we can't have it both ways, thanks to apple

cor3000 ( 2020-12-14 15:05:31 +0800 )edit

just tried this again with the latest ipadOS and ZK 9.6.0.1 ... I didn't encounter the issue any longer

cor3000 ( 2021-08-31 12:24:29 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2020-12-04 17:14:37 +0800

Seen: 14 times

Last updated: Dec 07 '20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More