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

Check for altInputFormats to be defined and an array before using it #6511

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

Conversation

gigadie
Copy link

@gigadie gigadie commented Apr 5, 2017

If the user wrongly sets a property which is undefined for the attribute alt-input-formats, this will cause an exception to be thrown when evaluating the viewValue in the method parseDateString.

"Cannot read property 'length' of undefined".

Checking for its existence and if it's an array or not prevents the exception.

If the user wrongly sets a property which is undefined for the attribute alt-input-formats, this will cause an exception to be thrown when evaluating the viewValue in the method parseDateString: "Cannot read property 'length' of undefined". Checking for its existence and if it's an array or not prevents the exception.
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.

None yet

1 participant