Skip to content

$forceUpdate do not update checked status of checkbox- #10500

Open
@xiaodemen

Description

@xiaodemen

Version

2.6.10

Reproduction link

https://jsfiddle.net/ahy27vu3/

Steps to reproduce

  1. input[type="text"] value is forced to '', which is controlled completely
  2. input[type="checkbox"] checked does not work

What is expected?

input[type="checkbox"] checked is forced to false

What is actually happening?

input[type="checkbox"] checked keep the value last entered


Maybe this is designed on purpose,Could you please explain why?
https://github.com/vuejs/vue/blob/dev/src/platforms/web/runtime/modules/dom-props.js#L67
https://github.com/vuejs/vue/blob/dev/src/platforms/web/runtime/modules/dom-props.js#L42

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