vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report] The label is crossed out with border in VTextField with outlined property, if label is updated dynamically and v-model has value

Open just7mile opened this issue 7 years ago • 3 comments

Environment

Vuetify Version: 2.0.3 Vue Version: 2.6.10 Browsers: Chrome 75.0.3770.142 OS: Mac OS 10.14.5

Steps to reproduce

  1. Create a v-text-field with outlined property:
 <v-text-field
                  :label="theLabel"
                  v-model="theModel"
                  outlined
></v-text-field>
  1. Configure the component:
public theModel: string = 'Some value';
public theLabel: string | null = null;

// When the component is created set the timeout to change theLabel value (i. e. fetching from server takes time)

public created() {
    const that = this;
    setTimeout(() => that.theLabel = 'Input name', 3000);
}

Expected Behavior

It shouldn't cross out the label.

Actual Behavior

It crosses out the label if the label updated dynamically and the v-model has some value.

Reproduction Link

https://codepen.io/dzhamshed/pen/eqEpGx

just7mile avatar Aug 01 '19 16:08 just7mile

Duplicate of https://github.com/vuetifyjs/vuetify/issues/7470

jacekkarczmarczyk avatar Aug 01 '19 16:08 jacekkarczmarczyk

I am still having this isssue. Did someone here figure out how to fix the crossed out label image

anjayluh avatar Nov 01 '19 05:11 anjayluh

Yeah. It seems that you only need a text input with a label and a prepend inner icon to see this happen.

I don't use prepend inner icon anymore.

wendelicious avatar Dec 12 '19 06:12 wendelicious