Skip to content

Commit c34e693

Browse files
committed
set read-only element's class on mounted
1 parent 38cfcbc commit c34e693

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vue-numeric.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,11 @@ export default {
312312
this.formatValue(this.value)
313313
}
314314
315+
// Set read-only span element's class
316+
if (this.readOnly) {
317+
this.$refs.readOnly.className = this.readOnlyClass
318+
}
319+
315320
// In case of delayed v-model new value.
316321
setTimeout(() => {
317322
this.processValue(this.formatToNumber(this.value))

0 commit comments

Comments
 (0)