dede.brahma
dede.brahma

Reputation: 329

VueJs - Element UI: How to get change el-date-picker

I have a case with Element UI 2.4.3 (actually for now i use 2.4.1).

When i use el-date-picker @change: in previous version it runs fine, but when Element UI has an update is el-date-picker :@change not working.

can you help me?

here my code

<el-date-picker v-model="form.birthdayName" type="date"  @change="dateChangebirthday"  format="dd-MM-yyyy" value-format="yyyy-MM-dd"  placeholder="Pick a day">
</el-date-picker>

here my fiddle (Element UI: 2.3.9) = https://jsfiddle.net/dede402/v86npjsg/3/

here my fiddle (Element UI: 2.4.3) = https://jsfiddle.net/dede402/875pe9zo/3/

Upvotes: 2

Views: 14352

Answers (1)

weslati khaled
weslati khaled

Reputation: 11

@change="dateChangebirthday($event)"

new Vue({ ...
methods: {
  dateChangebirthday(event){
  console.log(event);
 }
}

Upvotes: 1

Related Questions