Skip to content

[MdDatepicker] using format 'DD/MM/YYYY' exceeding stack size #1689

Closed
@Simillo

Description

@Simillo

Steps to reproduce

Setting Vue.material.locale.dateFormat = 'DD/MM/YYYY'.
Trying to select a date using md-datepicker.

Which browser?

Chrome Canary.

What is expected?

Be able to select a date.

What is actually happening?

When selecting a date using the dateFormat is DD/MM/YYYY the watcher for selecteDate is again executed and then there is loop.

https://github.com/vuematerial/vue-material/blob/dev/src/components/MdDatepicker/MdDatepicker.vue#L88

Reproduction Link

https://codesandbox.io/s/6398yyjqn

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions