I need to think about that, but I just discovered that you are actually
checking in whether maxLength is greater than zero, but you are registering
event instead removing i. [1]

Maybe it should be remove in this place ?

[1]
https://github.com/apache/royale-asjs/blob/2e91b52be7884ff7da91411ec5119e3b0e887f90/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/StringValidator.as#L167

Thanks,
Piotr

czw., 7 mar 2019 o 10:53 Carlos Rovira <[email protected]> napisał(a):

> Hi Piotr,
>
> since that modification was set only to solve maxlength on Android (that
> doesn't work as in the rest of browsers), I was thinking yesterday on set
> up the keyup listener in that code only if OSUtils reports Android as the
> OS. What do you think?
>
> El jue., 7 mar. 2019 a las 8:04, Piotr Zarzycki (<
> [email protected]>)
> escribió:
>
> > Hi Carlos,
> >
> > I bump today into issue where having following code [1] and writing
> > anything in the TextInput is being wipe out. [2] It causes by that method
> > where you are forcing some text length even if maxLength is 0 [3] - Do
> you
> > see any issue if we prevent from executing that logic when maxLenght is
> 0 ?
> >
> > [1] https://paste.apache.org/2q5H
> > [2] https://gph.is/g/4M07AWZ
> > [3]
> >
> >
> https://github.com/apache/royale-asjs/blob/2e91b52be7884ff7da91411ec5119e3b0e887f90/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/StringValidator.as#L121
> >
> > Thanks,
> > --
> >
> > Piotr Zarzycki
> >
> > Patreon: *https://www.patreon.com/piotrzarzycki
> > <https://www.patreon.com/piotrzarzycki>*
> >
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>


-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Reply via email to