Skip to content

Incorrect form field value in Chrome using the back button #11165

@mvgn

Description

@mvgn

Version

2.6.11

Reproduction link

https://jsfiddle.net/jc26tewa/

Steps to reproduce

  1. Type "Hello" in the message input field.
  2. Click on the link "Another page".
  3. Click on the browser back button.
  4. Click on the "Submit" button.

What is expected?

It is expected that the input field be blank or that Vue recognises its current value and shows "Submitted message: Hello" after clicking on the Submit button.

What is actually happening?

In Chrome, the input field contains the value it had before leaving the page, but Vue thinks the field is empty, so nothing happens when you click on the Submit button. In other browsers, the input field is blank after clicking on the back button.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions