Skip to content

Commit

Permalink
fix #34
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyq0826 committed Mar 11, 2019
1 parent 8d41566 commit 81f5df8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ The [ember-uploader](https://github.com/benefitcloud/ember-uploader) project sup

# Release notes

## 0.2.1

- fix [34](https://github.com/wecatch/ember-semantic-ui/issues/34)

## 0.2.0

- upgrade ember-cli to 3.1, support ember to latest 3.0
Expand Down
3 changes: 3 additions & 0 deletions addon/mixins/ui-input-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ export default Mixin.create({
attributeBindings: [],
_updateValue() {
let newValue = this.$('input').val();
if (this.get('type') === "number"){
newValue = parseFloat(newValue)
}
if (typeof this.attrs.update === 'function') {
this.attrs.update(newValue);
}else {
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": "ember-semantic-ui",
"version": "0.2.0",
"version": "0.2.1",
"description": "The components based on semantic-ui",
"directories": {
"doc": "doc",
Expand Down

0 comments on commit 81f5df8

Please sign in to comment.