nativescript-community / ui-material-components

Monorepo that contains all of the NativeScript Material Design plugins.
https://nativescript-community.github.io/ui-material-components/
Apache License 2.0
219 stars 80 forks source link

MDTextField data-bound hint not reflecting on value update #390

Open kdomingo opened 2 years ago

kdomingo commented 2 years ago

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

MDTextField data-bound hint not reflecting on value update

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Bind a string property to [hint] and change.

farfromrefug commented 2 years ago

@kdomingo you ll have to give a little it more thann this, like a sample code. Or even better a repro example project

kdomingo commented 2 years ago

@kdomingo you ll have to give a little it more thann this, like a sample code. Or even better a repro example project

< MDTextField

emailPhoneField

        id="email-phone-field"
        width="80%"
        variant="outline"
        strokeRadius="24"
        strokeColor="#09A9F4"
        strokeInactiveColor="#808080"
        placeholderColor="#808080"
        floating="false"
        minHeight="80"
        fontSize="16"
        borderRadius="24"
        **[hint]="viewModel.hint"**>

R-chie commented 2 years ago

same issue, hint doesn't work with interpolation too

farfromrefug commented 2 years ago

@kdomingo @R-chie so you are saying first value gets set but when you try to change it it does not update?

R-chie commented 2 years ago

@farfromrefug value sets only if hint="enter your value..."

[hint]="placeholderInputValue"- doesn't work, placeholder not visible hint="{{placeholderValue}}" - doesn't work, placeholder not visible

farfromrefug commented 2 years ago

@R-chie ok really weird would say it has nothing to do with the plugin. Reactivity is handled in N core. I ll check if i can reproduce in vue