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

onConfigured not called after rebind #377

Closed
techfg opened this issue Feb 17, 2021 · 0 comments · Fixed by #383
Closed

onConfigured not called after rebind #377

techfg opened this issue Feb 17, 2021 · 0 comments · Fixed by #383
Labels
Milestone

Comments

@techfg
Copy link
Collaborator

techfg commented Feb 17, 2021

Describe the bug
The rebind API applies the options passed to IM. While doing so, it "disables" functionality until its completed applying the new options (me.completed = false) but it does not fire any event when it completes. Calling IM methods (e.g. get) during the initialization process will result in Can't access data until binding complete. exceptions but there is no way to know when rebind is complete.

To Reproduce
Steps to reproduce the behavior:

  1. Go to jsFiddle
  2. Note the log under the image contains "onConfigured" since it was fired after initialization completed
  3. Click on Rebind
  4. Note that the log hasn't changed

Expected behavior
Similar to the way initialization works, onConfigured should be fired (if defined) so that consumer knows when IM is ready for use again.

Screenshots
N/A

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):
N/A

Additional context
N/A

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

Successfully merging a pull request may close this issue.

1 participant