Skip to content

Conversation

@amanuela97
Copy link
Contributor

  • username field in form is not longer buggy when typing fast

@amanuela97 amanuela97 requested a review from razbakov August 6, 2021 17:18
@amanuela97 amanuela97 self-assigned this Aug 6, 2021
@netlify
Copy link

netlify bot commented Aug 6, 2021

‼️ Deploy request for wedance rejected.
Learn more about Netlify's sensitive variable policy

🔨 Explore the source changes: 6798046

:item="item"
v-on="$attrs.listeners"
@input="(val) => $emit('input', set(val))"
@update="(val) => $emit('input', set(val))"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will emit input event, but later on you use update event. Are you sure it works?

@razbakov
Copy link
Contributor

razbakov commented Aug 7, 2021

Please add:

  • link to netlify, where I can test it
  • link the issue

@amanuela97 amanuela97 linked an issue Aug 9, 2021 that may be closed by this pull request
@razbakov
Copy link
Contributor

razbakov commented Aug 9, 2021

I tried to sign up, filled all the field, but I am getting this error:

Screenshot 2021-08-09 at 11 47 32

field.onChange(val)
}

this.$emit('input', val)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is probably used somewhere, did you check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i did and form seems to function the same without it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check commit where this line was added and see why

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems redundant since inline emit in another file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It sets a new value for the form, whenever any field is changed. If this event is not emitted v-model of the form won't be updated.

:value="value ? value[field.name] : ''"
:item="value"
v-bind="field"
:error="usernameError"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a form components, username is not always one of the fields of the form

return
}

await this.find('username', newName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe you can just put this code inside a new method validate and call this method on form save?

</TPopup>

<TPopup v-else-if="slide == 2" @close="close">
<TPopup v-else-if="slide === 2" @close="close">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change is not part of this issue

@razbakov
Copy link
Contributor

fixed in #50

@razbakov razbakov closed this Sep 23, 2021
@razbakov razbakov mentioned this pull request Feb 9, 2022
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

Successfully merging this pull request may close these issues.

Username fast input

2 participants