Skip to content

(v-model): v-model setter function not working properly when returning a constant value #10301

@sina-byn

Description

@sina-byn

Vue version

3.4.15

Link to minimal reproduction

https://play.vuejs.org/#eNp9Uk9P+zAM/SpWLh3Sft2B21R+EiAOIPFHsBvhUDp3BNIkSpyxadp3x0m3MqHBpWn8nu3n+G3EuXPlMqKYiio0XjmCgBTdf2lU56wn2IDHFrbQettBwdRigG7Xl5b/DBraweXkIJbqMhlAmsaaQNCtZ7giOEsVR0VxIk016ZtyO74Qdk7XhHwDmL2pAMq4SGCNXkPdNOgowFwtFIVpolSHApb/OjtHXZrYvaI/k6LvJgVMuF41GYqLsaDAglq1KN+DNTz6JqsUDRdTGv29I8WCpZhCRhJWa20/b3KMfMTxPt68YfNxJP4eVikmxYPHgH6JUgwY1X6BrCzBV093WeUA8hRRM/sP8BGD1TFp7GkX0cxZ9gEvq73OW1JmMQtXK0IT9kMloYm5zXwpeE/pHX8b/VvuaXma86TZ8iv+WPURC/Vrf86LGQMfqlXowwtbYI6tMnibkFHuxDmjZa0jnuw7qxZGQ85urwMIbCKK3kCRm9TsgECeh82Oyxqz+vzdUXP5/QB/u6/qnUdrh2wl6o20s1jyVjqPWGv7BQquH0c=

Steps to reproduce

just type in the provided input multiple times

What is expected?

the expected behaviour is that the setter function of the model in the define model is supposed to return the 'constant string' no matter what you type in the given input

What is actually happening?

the problem is that the input's value is set as expected only after the first character has been typed and after that it no loger sets the value to be equal to the given constant string

System Info

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions