Skip to content

Added emptyAttributeOnError option. #1

Open
robertprice wants to merge 4 commits into
aramlawi-zz:masterfrom
robertprice:master
Open

Added emptyAttributeOnError option. #1
robertprice wants to merge 4 commits into
aramlawi-zz:masterfrom
robertprice:master

Conversation

@robertprice

Copy link
Copy Markdown

emptyAttributeOnError fixes a bug I had where changing a year on an existing date to an empty string would mean the previous date was returned silently and with no error. The change returns an empty value now if a problem occurs with the date.

This functionality is optionally turned on using the emptyAttributeOnError option in the widget. By default this is off and the old behaviour is still enabled.

I have not updated the widget version number so if this pull request is accepted this will need to be bumped and the module rebuilt.

…ute if an error occurs instead of potentially retaining an existing date.
… than one date picker was on a page as id has to be unique.

Updated the test project to test two dates on a page.
@robertprice

Copy link
Copy Markdown
Author

Also added a fix to allow more than one instance of the date picker to be on page at the same time.

…iew is used, the class will have the name and fail. This gives it a unique class so it no longer clashes.
@robertprice

Copy link
Copy Markdown
Author

Also added a unique id to the classname. This is needed because if used in a ListView it caused the classname to be replicated and it was no longer distinct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant