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

Fix: Safely parse value in template #244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix: Safely parse value in template #244

wants to merge 1 commit into from

Conversation

Xowap
Copy link

@Xowap Xowap commented Jun 16, 2016

Problem

When clearing the value or providing an invalid value in the input, the template goes through some warnings [and fatal errors if you're using the debug mode].

Solution

Parsing is done using a computed property that will always have a correct value (defaulting to today's date) if the parsed value is not correct.

As a side effect, there is a performance bonus as the value is only parsed once.

@Xowap Xowap changed the title Safely parse value in template Fix: Safely parse value in template Jun 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant