added onSelect event, when date are selected (#4058)

This commit is contained in:
Manish Kushare 2022-09-26 14:21:03 +05:30 committed by GitHub
parent d1b8da1d45
commit 8f3abb5609
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -12,6 +12,7 @@ export const DaterangePicker = function DaterangePicker({
setExposedVariable,
width,
darkMode,
fireEvent,
}) {
const { borderRadius, visibility, disabledState } = styles;
const { defaultStartDate, defaultEndDate } = properties;
@ -54,6 +55,7 @@ export const DaterangePicker = function DaterangePicker({
setStartDate(start);
setEndDate(end);
fireEvent('onSelect');
}
function focusChanged(focus) {

View file

@ -1507,7 +1507,9 @@ export const widgets = [
},
},
},
events: {},
events: {
onSelect: { displayName: 'On select' },
},
styles: {
borderRadius: {
type: 'code',