diff --git a/apps/showcase/doc/datepicker/FloatLabelDoc.vue b/apps/showcase/doc/datepicker/FloatLabelDoc.vue index c8e4809b7..cb668efa0 100644 --- a/apps/showcase/doc/datepicker/FloatLabelDoc.vue +++ b/apps/showcase/doc/datepicker/FloatLabelDoc.vue @@ -2,10 +2,20 @@

A floating label appears on top of the input field when focused. Visit FloatLabel documentation for more information.

-
+
- - + + + + + + + + + + + +
@@ -15,7 +25,9 @@ export default { data() { return { - date: null, + value1: null, + value2: null, + value3: null, code: { basic: ` @@ -37,8 +49,10 @@ export default { export default { data() { return { - date: null - }; + value1: null, + value2: null, + value3: null, + } } }; <\/script> @@ -56,7 +70,9 @@ export default { diff --git a/apps/showcase/pages/datepicker/index.vue b/apps/showcase/pages/datepicker/index.vue index 620163d32..037121e51 100755 --- a/apps/showcase/pages/datepicker/index.vue +++ b/apps/showcase/pages/datepicker/index.vue @@ -12,6 +12,7 @@ import FilledDoc from '@/doc/datepicker/FilledDoc.vue'; import FloatLabelDoc from '@/doc/datepicker/FloatLabelDoc.vue'; import FormatDoc from '@/doc/datepicker/FormatDoc.vue'; import IconDoc from '@/doc/datepicker/IconDoc.vue'; +import IftaLabelDoc from '@/doc/datepicker/IftaLabelDoc.vue'; import ImportDoc from '@/doc/datepicker/ImportDoc.vue'; import InlineDoc from '@/doc/datepicker/InlineDoc.vue'; import InvalidDoc from '@/doc/datepicker/InvalidDoc.vue'; @@ -110,6 +111,11 @@ export default { label: 'Float Label', component: FloatLabelDoc }, + { + id: 'iftalabel', + label: 'Ifta Label', + component: IftaLabelDoc + }, { id: 'filled', label: 'Filled', diff --git a/packages/primevue/src/datepicker/style/DatePickerStyle.js b/packages/primevue/src/datepicker/style/DatePickerStyle.js index 497fc2c8a..969ab9c07 100644 --- a/packages/primevue/src/datepicker/style/DatePickerStyle.js +++ b/packages/primevue/src/datepicker/style/DatePickerStyle.js @@ -375,7 +375,7 @@ const classes = { { 'p-invalid': props.invalid, 'p-inputwrapper-filled': props.modelValue, - 'p-inputwrapper-focus': state.focused, + 'p-inputwrapper-focus': state.focused || state.overlayVisible, 'p-focus': state.focused || state.overlayVisible, 'p-datepicker-fluid': instance.hasFluid }