Skip to content

Uncaught Error: value should be string #2

@Denobraz

Description

@Denobraz

Environment

"@vueform/nuxt": "^1.26.0",
"@vueform/plugin-mask": "^1.0.7",

Reproduction

Try to update form data

const vueformRef = ref<Vueform | null>(null)
vueformRef.value?.update({ ...})

I have mask only on number inputs:

{
    "mask": "number",
    "thousandsSeparator": " ",
    "normalizeZeros": true,
    "scale": 0
}

Describe the bug

Uncaught Error: value should be string
    at Proxy.append (@vueform_plugin-mask…?v=1ace7a62:1009:31)
    at Proxy.resolve (@vueform_plugin-mask…s?v=1ace7a62:858:10)
    at set unmaskedValue (@vueform_plugin-mask…s?v=1ace7a62:865:10)
    at set unmaskedValue (@vueform_plugin-mask…?v=1ace7a62:3027:25)
    at Reflect.set (<anonymous>)
    at MutableReactiveHandler.set (reactivity.esm-bundl…?v=1ace7a62:1032:28)
    at set unmaskedValue (@vueform_plugin-mask…s?v=1ace7a62:474:31)
    at Reflect.set (<anonymous>)
    at MutableReactiveHandler.set (reactivity.esm-bundl…?v=1ace7a62:1032:28)
    at Proxy.update (@vueform_plugin-mask…v=1ace7a62:3277:111)
** Appends symbols considering flags */
  append(str, flags, tail) {
    if (!isString(str)) throw new Error("value should be string");

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions