Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onSave 方法在什么时候会执行? #18

Closed
endwiki opened this issue May 8, 2019 · 1 comment
Closed

onSave 方法在什么时候会执行? #18

endwiki opened this issue May 8, 2019 · 1 comment

Comments

@endwiki
Copy link

endwiki commented May 8, 2019

按道理来讲,onSave 的回调只有我在按下ctrl+s的时候,才会触发,但实际上,我发现只要是 组件的状态发生变化,就回执行,如下图所示:

image

当我输入文章标题的时候,会不断的执行 onSave 中指定的回调,只要把 onSave 回调去除就正常了。

这是我自己代码有问题,还是有 BUG ?

@endwiki endwiki closed this as completed May 8, 2019
@endwiki
Copy link
Author

endwiki commented May 8, 2019

我自己代码的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant