Skip to main content
Nov 10, 2021 10:01 AM UTC
Solved

Issue with ptcstextfield masked input on mobile mashup

I use that widget with a mask like

9999-9999-9999-a

 

from desktop web browser it works fine,

but from a mobile phone at the first number pressed, the cursor goes back of 1 and so the first group of 4 number is get in a wrong way.

By pressing 12345 I get

2345-1____-____-_

instead of

1234-5___-____-_

is there a fix

 

I have thingworx 8.5.16

 

iguerraAnswer
Nov 22, 2021 8:28 AM UTC

Hello @slangley 

The issue can be fixed with this workaround that was made (by you) for another issue on the same widget

 
ptcs-textfield:focus-within::part(hint-text) {
display: none;
}
 
now it works fine even on 8.5 version
Regards
______
Ivano

2 replies

Nov 19, 2021 7:37 PM UTC

Hi @iguerra.

 

Unfortunately, 8.5 is no longer supported.  However, there have been some improvements in the 9.x releases.  We tested under TWX 9.2.3 and it worked on iOS 14.8.  We don't have an Android phone for testing.

 

Regards.

 

--Sharon

iguerraAuthorAnswer
Nov 22, 2021 8:28 AM UTC

Hello @slangley 

The issue can be fixed with this workaround that was made (by you) for another issue on the same widget

 
ptcs-textfield:focus-within::part(hint-text) {
display: none;
}
 
now it works fine even on 8.5 version
Regards
______
Ivano