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

fix: console.errors coming from using Datepicker #899

Merged

Conversation

tonydiaz
Copy link
Contributor

Closes https://github.com/carbon-design-system/carbon-components-react/issues/898

Seeing console errors displaying while using the DatePicker and passing in minDate and maxDate props.

Changelog

New

  • N/A

Changed

  • DatePicker.js - adding minDate and maxDate to props-type and render function
  • DatePicker-test.js - adding tests for minDate and maxDate to prevent the issue.

Removed

  • N/A

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

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

@tonydiaz LGTM 👍 - Thank you for your quick fix!!

@alisonjoseph alisonjoseph merged commit 984434e into carbon-design-system:master May 18, 2018
@carbon-bot
Copy link

🎉 This PR is included in version 5.51.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

kiett pushed a commit to kiett/carbon-components-react that referenced this pull request May 25, 2018
alisonjoseph added a commit that referenced this pull request May 30, 2018
* chore: Update .babelrc, resolves  #885 (#886)

* chore: Update .babelrc, resolves  #885

* chore: Update pacage.json, resolves  #885

* chore(build): fix babel config for test (#892)

* feat(DatePicker): Added minDate and maxDate props and pass them on to flatpickr (#887)

* feat(DatePicker): Added minDate and maxDate props and pass them on to flatpickr

* Updated story description

* fix: Pagination component's range and page text for no items (#872)

* fix: Pagination component's range and page text for no items, resolves #553

* fix: Update UTs for PaginationV2

* feat(SearchFilterButton): add support for attaching event handlers (#896)

* fix(DatePicker): treat Flatpickr's default export as a constructor (#890)

Fixes #491.

* fix: console.errors coming from using Datepicker (#899)

* fix(package): update flatpickr to version 4.5.0 (#897)

* fix(package): update flatpickr to version 4.5.0

Closes #893

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile

* fix(table-toolbar-search): add i18n support (#903)

* fix(OverflowMenu): fix <ClickOutside> not covering floating menu (#906)

Fixes #628.

* fix(icon-skeleton): Add missing export for IconSkeleton component (#917)

* fix(Search): make search icon description translatable (#927)

Fixes #923.

* fix(Tooltip): prevent aria-owns attribute being set unless the target really exists (#926)

Fixes #913.

* feat(slider): Add light prop to slider
joshblack pushed a commit that referenced this pull request Jun 4, 2018
* chore: Update .babelrc, resolves  #885 (#886)

* chore: Update .babelrc, resolves  #885

* chore: Update pacage.json, resolves  #885

* chore(build): fix babel config for test (#892)

* feat(DatePicker): Added minDate and maxDate props and pass them on to flatpickr (#887)

* feat(DatePicker): Added minDate and maxDate props and pass them on to flatpickr

* Updated story description

* fix: Pagination component's range and page text for no items (#872)

* fix: Pagination component's range and page text for no items, resolves #553

* fix: Update UTs for PaginationV2

* feat(SearchFilterButton): add support for attaching event handlers (#896)

* fix(DatePicker): treat Flatpickr's default export as a constructor (#890)

Fixes #491.

* fix: console.errors coming from using Datepicker (#899)

* fix(package): update flatpickr to version 4.5.0 (#897)

* fix(package): update flatpickr to version 4.5.0

Closes #893

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile

* fix(table-toolbar-search): add i18n support (#903)

* fix(OverflowMenu): fix <ClickOutside> not covering floating menu (#906)

Fixes #628.

* fix(icon-skeleton): Add missing export for IconSkeleton component (#917)

* fix(Search): make search icon description translatable (#927)

Fixes #923.

* fix(Tooltip): prevent aria-owns attribute being set unless the target really exists (#926)

Fixes #913.

* feat(slider): Add light prop to slider
joshblack pushed a commit that referenced this pull request Jun 4, 2018
* chore: Update .babelrc, resolves  #885 (#886)

* chore: Update .babelrc, resolves  #885

* chore: Update pacage.json, resolves  #885

* chore(build): fix babel config for test (#892)

* feat(DatePicker): Added minDate and maxDate props and pass them on to flatpickr (#887)

* feat(DatePicker): Added minDate and maxDate props and pass them on to flatpickr

* Updated story description

* fix: Pagination component's range and page text for no items (#872)

* fix: Pagination component's range and page text for no items, resolves #553

* fix: Update UTs for PaginationV2

* feat(SearchFilterButton): add support for attaching event handlers (#896)

* fix(DatePicker): treat Flatpickr's default export as a constructor (#890)

Fixes #491.

* fix: console.errors coming from using Datepicker (#899)

* fix(package): update flatpickr to version 4.5.0 (#897)

* fix(package): update flatpickr to version 4.5.0

Closes #893

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile

* fix(table-toolbar-search): add i18n support (#903)

* fix(OverflowMenu): fix <ClickOutside> not covering floating menu (#906)

Fixes #628.

* fix(icon-skeleton): Add missing export for IconSkeleton component (#917)

* fix(Search): make search icon description translatable (#927)

Fixes #923.

* fix(Tooltip): prevent aria-owns attribute being set unless the target really exists (#926)

Fixes #913.

* feat(slider): Add light prop to slider
alisonjoseph pushed a commit that referenced this pull request Jun 14, 2018
…Menu's open state (#889)

* feat(OverflowMenu): added onClose to props to notify menu is closed

* feat(OverflowMenu): moved onClose handler to componentDidUpdate

* feat(OverflowMenu): moved onClose handler to render() where state.open is surely changed

* feat(OverflowMenu): moved onClose handler to componentDidUpdate

* feat(OverflowMenu): add onOpen to notify caller menu's open state

* feat(OverflowMenu): moved onClose & onOpen handler to componentDidUpdate

* feat(OverflowMenu): added onClose to props to notify menu is closed

* chore(build): fix babel config for test (#892)

* feat(OverflowMenu): moved onClose handler to componentDidUpdate

* feat(OverflowMenu): moved onClose handler to render() where state.open is surely changed

* feat(OverflowMenu): moved onClose handler to componentDidUpdate

* feat(DatePicker): Added minDate and maxDate props and pass them on to flatpickr (#887)

* feat(DatePicker): Added minDate and maxDate props and pass them on to flatpickr

* Updated story description

* fix: Pagination component's range and page text for no items (#872)

* fix: Pagination component's range and page text for no items, resolves #553

* fix: Update UTs for PaginationV2

* feat(SearchFilterButton): add support for attaching event handlers (#896)

* fix(DatePicker): treat Flatpickr's default export as a constructor (#890)

Fixes #491.

* fix: console.errors coming from using Datepicker (#899)

* fix(package): update flatpickr to version 4.5.0 (#897)

* fix(package): update flatpickr to version 4.5.0

Closes #893

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile

* fix(table-toolbar-search): add i18n support (#903)

* fix(OverflowMenu): fix <ClickOutside> not covering floating menu (#906)

Fixes #628.

* feat(OverflowMenu): add onOpen to notify caller menu's open state

* feat(OverflowMenu): moved onClose & onOpen handler to componentDidUpdate

* feat(OverflowMenu): moved onOpen call hook to_handlePlace

* feat(OverflowMenu): refine from Josh and Akira's reviews

* feat(OverflowMenu): refine from Josh and Akira's reviews

* feat(OverflowMenu): refine from Josh and Akira's reviews
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.

5 participants