Skip to content

Input breaks when using watch options and autoDecimalDigits false #419

@acirinelli

Description

@acirinelli

Vue Currency Input version

v3.0.3

Vue version

v3.2.45

What browser are you using?

Chrome

What operating system are you using?

MacOS

Reproduction link

https://codesandbox.io/s/muddy-frost-p7qgv2?file=/src/components/VCurrencyField.vue:1006-1023

Describe your issue

When using watch options and autoDecimalDigits:false, the input behaves in a strange way where it breaks after each number press and only accepts the last number. See code sandbox for working example.

It seems to only continue working correctly if precision is set to 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions