HealthCatalyst / Fabric.Cashmere

Health Catalyst’s comprehensive design system.
http://cashmere.healthcatalyst.net
Apache License 2.0
66 stars 76 forks source link

Date Range: emit event on cancel #1776

Closed jacquie closed 2 years ago

jacquie commented 2 years ago

On Pop Insights dashboards for performance reasons we want to suspend loading the dashboard data when the date range picker is opened. Currently there is no way to know if the date range picker gets closed with the cancel button with no new date range picked and so in our case no way to let the component know to continue loading the dashboard data with the current date range.

It would be good if Cashmere could emit an event when the date range picker is canceled.

andrew-frueh commented 2 years ago

Hey @jacquie - how about a closed emitter that returns null on cancel or a DateRange on apply? Would that work?

jacquie commented 2 years ago

Yes, thanks, @andrew-frueh that would be perfect 👍

health-catalyst commented 2 years ago

:tada: This issue has been resolved in version 12.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: