Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ng-model does not update input[type=date] field #13224

@mchccc

Description

@mchccc

Binding from the form to the model works as expected, but I wanted to add some weeks-incremental buttons and I noticed that changes applied directly to the model are not reflected on the actual field.

To reproduce, and making sure that it was not something caused by my specific setup, I went to the API documentation page for input and put some code in the browser's console (after inspecting a random element in the output box, and selecting the proper frame as the current context): angular.element($0).scope().example.value.setDate(20); angular.element($0).scope().$apply().

The result I'm getting is an update on the text value only; am I wrong in assuming that this should result in an updated input field as well?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions