Skip to content

Commit

Permalink
fix: fix composition input for EasyFiled
Browse files Browse the repository at this point in the history
  • Loading branch information
qiqiboy committed Nov 25, 2020
1 parent 6d29483 commit bb365c5
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
1 change: 0 additions & 1 deletion .git-tsconfig.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
node_modules
/package-lock.json
/coverage
/.git-tsconfig.json
4 changes: 2 additions & 2 deletions dist/react-formutil.cjs.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -2214,8 +2214,8 @@ var EasyFieldNative = /*#__PURE__*/function (_Component) {
},
onFocus: onFocus,
onBlur: function onBlur(ev) {
if (_this.isComposition) {
_this.isComposition = false;
if (_this.isComposing) {
_this.isComposing = false;
delete _this.compositionValue;
htmlProps.onChange(ev);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/react-formutil.cjs.production.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/react-formutil.esm.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -2143,8 +2143,8 @@ var EasyFieldNative = /*#__PURE__*/function (_Component) {
},
onFocus: onFocus,
onBlur: function onBlur(ev) {
if (_this.isComposition) {
_this.isComposition = false;
if (_this.isComposing) {
_this.isComposing = false;
delete _this.compositionValue;
htmlProps.onChange(ev);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/react-formutil.esm.production.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/react-formutil.umd.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -2951,8 +2951,8 @@
},
onFocus: onFocus,
onBlur: function onBlur(ev) {
if (_this.isComposition) {
_this.isComposition = false;
if (_this.isComposing) {
_this.isComposing = false;
delete _this.compositionValue;
htmlProps.onChange(ev);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/react-formutil.umd.production.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"prop-types": "15.7.2",
"react-animated-router": "0.1.11",
"react-awesome-snippets": "0.0.18",
"react-router-dom": "4.3.1",
"react-router-dom": "5.2.0",
"react-transition-group": "2.3.0"
},
"devDependencies": {
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": "react-formutil",
"version": "1.0.20",
"version": "1.0.21",
"description": "Happy to build the forms in React ^_^",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
Expand Down
4 changes: 2 additions & 2 deletions src/EasyField/Native.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class EasyFieldNative extends Component {
},
onFocus,
onBlur: ev => {
if (this.isComposition) {
this.isComposition = false;
if (this.isComposing) {
this.isComposing = false;
delete this.compositionValue;
htmlProps.onChange(ev);
}
Expand Down

0 comments on commit bb365c5

Please sign in to comment.