Skip to content

Commit

Permalink
Merge pull request #438 from bethinkpl/IT-5861_dont_hide_date_in_date…
Browse files Browse the repository at this point in the history
…picker_when_in_loading_state

IT-5861 don't hide date when loading
  • Loading branch information
pioziol123 authored Nov 12, 2024
2 parents e92a2eb + 2fb531b commit 18e034f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/js/components/DatePickers/DatePicker/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,13 @@ export default defineComponent({
},
computed: {
eyebrowText() {
if (!this.date || this.state === DATE_PICKER_STATES.LOADING) {
if (!this.date) {
return '';
}
return capitalizeFirstLetter(localWeekdayName(this.date));
},
text() {
if (this.state === DATE_PICKER_STATES.LOADING || !this.date) {
if (!this.date) {
return this.placeholder;
}
return localFullDateWithShortMonthName(this.date);
Expand Down

0 comments on commit 18e034f

Please sign in to comment.