Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:value.sync is outputting a null when the value of the input is empty #135

Open
princebatey opened this issue Dec 16, 2021 · 0 comments
Open

Comments

@princebatey
Copy link

here is my customInput code.

<CustomInput
                  v-if="!isUpdate"
                  element-id="information_basic_profession"
                  input-type="text"
                  default-label="Profession"
                  name="information_basic_profession"
                  :value.sync="propertiesBasic.profession"
                  rules="max:100"
                  place-holder="Student"
                  max-length="100"
                  :multilinguals="multilinguals"
                  :lang="lang"
                  :label="54"
                />

スクリーンショット 2021-11-17 14 56 50

I am getting a null value when the input is empty it should still empty because i declared my profession value as a string value in the object propertiesBasic
As you guys know we use the .sync value for “two-way binding” in my service i want to get value from the client to bind it on my dashboard but when value is empty i want to get the same empty but not null. if anyone has an idea please help me Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant