Skip to content

Commit 5a3f148

Browse files
authored
Merge pull request #27 from ablamunits/master
Fixes blur event handling
2 parents 0d6e6f4 + 63c5039 commit 5a3f148

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ class Shared implements ICommon {
132132
public wire(name: string) {
133133

134134
switch (name) {
135-
case 'blur': {
136-
(this.editor as any).on('onBlur', (cm, event) => {
135+
case 'onBlur': {
136+
(this.editor as any).on('blur', (cm, event) => {
137137
this.props.onBlur(this.editor, event);
138138
});
139139
}

0 commit comments

Comments
 (0)