Skip to content
This repository was archived by the owner on May 3, 2018. It is now read-only.
This repository was archived by the owner on May 3, 2018. It is now read-only.

Triggering vuejs on programatical change of element. #157

@garpur

Description

@garpur

Hi,

We are having a slight problem using vuejs in an existing web.

The web has automatic validate/format functionality bound to all input fields (this is done by jQuery)

We are using vue for a part of the site to handle a multi step wizard, this works very well except that our
input field validation/format does not trigger a change in the value stored in vue :(

eg.
if (isvalid.valid) {
var v = _inputs.format($input._type, $input.val());
$input.val(v); // -- this changes the displayed value in the actual dom input field but NOT the value in vuejs
}

Is there any way to tell vue to re-read the input field or can we somehow access the vuejs value and set that manually?

cheers
garpur

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