-
-
Notifications
You must be signed in to change notification settings - Fork 144
Conversation
Changes the onDateChange function to test if provided new dates are different. Closes #209.
The updatemode prop can be 'singledate' or 'bothdates' to specify if you want the callback (setProps) to trigger when selecting one date or when you have selected both (start and end) dates. Wasn't able to write integration test. Closes #152.
This tests if 'bothupdates' as 'updatemode' only triggers after updating both dates.
Added a .click() to lose focus of element, hopefully thereby triggering the callback to fire.
Looking forward to this being merged. Thanks for your work @valentijnnieman ! |
Any movement on this? Would be great to see this integrated asap. Thanks! |
dash_core_components/metadata.json
Outdated
@@ -139,73 +139,6 @@ | |||
} | |||
} | |||
}, | |||
"src/components/Confirm.react.js": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious why this chunk of meta was removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is curious... I have no idea why it's there in the first place, as there's no Confirm component or anything. Could it be related to the new Confirmation modal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small question otherwise looks good to me
💃
CHANGELOG.md
Outdated
@@ -2,6 +2,11 @@ | |||
All notable changes to this project will be documented in this file. | |||
This project adheres to [Semantic Versioning](http://semver.org/). | |||
|
|||
## [0.23.1] | |||
### Fixed | |||
- Improved DatePickerRange, fixing issues #209 and 152 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CHANGELOG.md
Outdated
### Fixed | ||
- Improved DatePickerRange, fixing issues #209 and 152 | ||
|
||
### Added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can ⚡️ this one
* the DatePicker will update its value | ||
* as one date is picked. | ||
*/ | ||
updatemode: PropTypes.oneOf(['singledate', 'bothdates']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Nice
This improves the DatePickerRange component, with bugfixes for #209 and #152 .