Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Fix datepicker input always being disabled #45

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

Conversation

davidstritzl
Copy link

This PR fixes the datepicker input element always being disabled regardless of the disabled input attribute. This is caused by passing a boolean for the disabled attribute to the host input element, which will be implicitly converted to the strings "true" or "false", dependently on the boolean value, however, according to the HTML5 standard, boolean attributes with false values must be left out completely (and true values can be either an empty string or the attribute name itself).

@matheo
Copy link
Contributor

matheo commented Mar 10, 2021

Thanks for this PR @davidstritzl
I just released @coachcare/datepicker v1.0.3 with this fix.

Take in account that this package is deprecated by @matheo/datepicker for Angular v11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants