File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ import GenRandomId from '../../utils/GenRandomId.js'
101101import AlertCircle from ' vue-material-design-icons/AlertCircleOutline.vue'
102102import Check from ' vue-material-design-icons/Check.vue'
103103import { useModelMigration } from ' ../../composables/useModelMigration.ts'
104+ import { isLegacy32 } from ' ../../utils/legacy.ts'
104105
105106export default {
106107 name: ' NcInputField' ,
@@ -297,7 +298,13 @@ export default {
297298 },
298299
299300 computedPlaceholder () {
300- return this .hasPlaceholder ? this .placeholder : this .label
301+ if (this .hasPlaceholder ) {
302+ return this .placeholder
303+ }
304+ if (isLegacy32) {
305+ return this .label
306+ }
307+ return undefined
301308 },
302309
303310 isValidLabel () {
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ import GenRandomId from '../../utils/GenRandomId.js'
135135import AlertCircle from ' vue-material-design-icons/AlertCircleOutline.vue'
136136import Check from ' vue-material-design-icons/Check.vue'
137137import { useModelMigration } from ' ../../composables/useModelMigration.ts'
138+ import { isLegacy32 } from ' ../../utils/legacy.ts'
138139
139140export default {
140141 name: ' NcTextArea' ,
@@ -288,7 +289,13 @@ export default {
288289 },
289290
290291 computedPlaceholder () {
291- return this .hasPlaceholder ? this .placeholder : this .label
292+ if (this .hasPlaceholder ) {
293+ return this .placeholder
294+ }
295+ if (isLegacy32) {
296+ return this .label
297+ }
298+ return undefined
292299 },
293300
294301 isValidLabel () {
You can’t perform that action at this time.
0 commit comments