Skip to content

Commit

Permalink
Correctly update month and era fields when underlying tag changes
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Dec 12, 2023
1 parent b647f3a commit ab49980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ui/fields/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ export function uiFieldDate(field, context) {
.attr('title', isMixed ? yearValue.filter(Boolean).join('\n') : null)
.attr('placeholder', isMixed ? t('inspector.multiple_values') : t('inspector.date.year'))
.classed('mixed', isMixed);
eraInput.attr('value', eraValue)
utilGetSetValue(eraInput, eraValue)
.attr('placeholder', t('inspector.date.era'));
monthInput.attr('value', monthValue)
utilGetSetValue(monthInput, monthValue)
.attr('placeholder', t('inspector.date.month'));
utilGetSetValue(dayInput, typeof dayValue === 'number' ? dayValue : '')
.attr('placeholder', t('inspector.date.day'));
Expand Down

0 comments on commit ab49980

Please sign in to comment.