Skip to content

Commit

Permalink
修复 xy-datalist 改变时不触发 onchange 事件的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
XboxYan committed Nov 9, 2021
1 parent 3607cee commit d287472
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
![xy-ui](./screenshot/xy-ui.png)

## 更新
* ## 1.10.5
* 修复 xy-datalist 改变时不触发 onchange 事件的问题
* ## 1.10.4
* xy-dialog新增[`portal`](xy-dialog?id=传送门portal)属性,可以指定渲染到指定节点
* ## 1.10.3
Expand Down
5 changes: 5 additions & 0 deletions components/xy-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,11 @@ export default class XyInput extends HTMLElement {
if(ev.target.value){
this.value = ev.target.value;
this.list.show = false;
this.dispatchEvent(new CustomEvent('change',{
detail:{
value:this.value
}
}));
}
})
}
Expand Down
2 changes: 2 additions & 0 deletions docs/update.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# update
* ## 1.10.5
* 修复 xy-datalist 改变时不触发 onchange 事件的问题
* ## 1.10.4
* xy-dialog新增[`portal`](xy-dialog?id=传送门portal)属性,可以指定渲染到指定节点
* ## 1.10.3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xy-ui",
"version": "1.10.4",
"version": "1.10.5",
"description": "a front end cross-framework ui library based on web-components",
"main": "index.js",
"module": "index.js",
Expand Down

0 comments on commit d287472

Please sign in to comment.