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

fix(GRANITE-36188): Able to select the date on disabled datepicker #189

Merged
merged 3 commits into from
Oct 21, 2021

Conversation

deepakvarshney
Copy link
Contributor

@deepakvarshney deepakvarshney commented Oct 20, 2021

Description

On loading the UI for datepicker, read-only attribute is added by default during rendering, so if datepicker is disabled and readOnly section is called after that, then the calendar button is marked enabled from readOnly section which should be disabled.

Related Issue

GRANITE-36188: Authors are able to select date on disabled date picker

Motivation and Context

Setting the disabled to true and then readonly to false, reenable the datepicker button which seems to be incorrect. Same goes for readonly to true and then disabled to false.

How Has This Been Tested?

Tested Manually from the browser console by calling readOnly and disabled on the datepicker element.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

@Pareesh Pareesh changed the title GRANITE-36188: Authors are able to select date on disabled date picker fix(GRANITE-36188): Able to select the date on disabled datepicker Oct 21, 2021
@Pareesh Pareesh merged commit 6e8a0eb into adobe:master Oct 21, 2021
github-actions bot pushed a commit that referenced this pull request Oct 21, 2021
## [4.12.3](v4.12.2...v4.12.3) (2021-10-21)

### Bug Fixes

* **GRANITE-36188:** Able to select the date on disabled datepicker ([#189](#189)) ([6e8a0eb](6e8a0eb))
@github-actions
Copy link

🎉 This PR is included in version 4.12.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants