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

$inputor.atwho('run') not work #589

Open
lc-soft opened this issue Nov 23, 2020 · 0 comments
Open

$inputor.atwho('run') not work #589

lc-soft opened this issue Nov 23, 2020 · 0 comments

Comments

@lc-soft
Copy link

lc-soft commented Nov 23, 2020

I found the recent commit 293933c changes in src/app.coffee will makes the .atwho('run') method do nothing.

run: -> this.dispatch()

2020-11-23 13-38-03 的屏幕截图

In previous versions, the example in the document used the atwho('run') method to display the menu after loading the data.

https://github.com/ichord/At.js/wiki/APIs#run

image

But now, I have to make the following changes to show the atwho menu:

 $.getJSON(url, params, function(data) {
-    $inputor.atwho('load',':', data).atwho('run');
+    $inputor.atwho('load',':', data).data('atwho').dispatch($.Event('click'));
 });
@lc-soft lc-soft changed the title $().atwho('run') not work $inputor.atwho('run') not work Nov 23, 2020
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