Skip to content

Commit f232da9

Browse files
committed
fix(maz-ui): MazDatePicker - custom shortcuts was not displayed
1 parent 4af1a7b commit f232da9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/lib/src/components/MazDatePicker.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,10 @@ const internalShortcuts = computed(() => {
409409
return false
410410
}
411411
412+
if (props.shortcuts && Array.isArray(props.shortcuts)) {
413+
return props.shortcuts
414+
}
415+
412416
return getDefaultsShortcuts({
413417
lastSevenDays: t('datePicker.shortcuts.lastSevenDays'),
414418
lastThirtyDays: t('datePicker.shortcuts.lastThirtyDays'),

0 commit comments

Comments
 (0)