Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add disabled state for datepicker and datetimepicker #959

Merged

Conversation

mikerodonnell89
Copy link
Member

fixes #956

@netlify
Copy link

netlify bot commented Jun 19, 2019

Deploy preview for fundamental-ngx ready!

Built with commit 6a9641c

https://deploy-preview-959--fundamental-ngx.netlify.com

Copy link
Contributor

@MattL75 MattL75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add unit tests, and also there should be a check in the code about the disabled property when attempting to select a new date.

The disabled property should be controlled by the ControlValueAccessor and through the input.

    setDisabledState(isDisabled: boolean): void {
        this.disabled = isDisabled;
    }

This is to enable the form disabled property to work as well.

@droshev droshev added this to In progress in Development via automation Jun 19, 2019
@mikerodonnell89
Copy link
Member Author

@MattL75 think I got that covered, let me know if I missed anything

Development automation moved this from In progress to Reviewer approved Jun 26, 2019
@mikerodonnell89 mikerodonnell89 merged commit 8b2a242 into master Jun 26, 2019
Development automation moved this from Reviewer approved to Done Jun 26, 2019
@droshev droshev deleted the enhancement/#956-datepicker-datetimepicker-disabled branch June 26, 2019 19:02
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.

DatePicker and DateTimePicker need a disabled state
3 participants