-
Notifications
You must be signed in to change notification settings - Fork 132
Custom insert popover problem Solved #794
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
Custom insert popover problem Solved #794
Conversation
|
Hey @RaviAnand111 well done! |
dist/PublicLab.Editor.js
Outdated
| $(':not(".woofmark-command-insert")').click((e) => { | ||
| // check to see that the clicked element isn't fa-insert icon, else when you click on the fa-insert icon, the popover will close | ||
| try { | ||
| if ($('.woofmark-command-insert').children()[0] != e.target) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should also check if the popover is open here by adding
+ if (popoverIsOpen && $('.woofmark-command-insert').children()[0] != e.target) {this way, you don't need a try/catch block @RaviAnand111
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, Ok I will be adding that in the code, Thanks
|
Yeah, @NARUDESIGNS , Its late here, I have to go to sleep, I will be making those demo videos in the morning and adding it in this PR and the preivous one too, so that you and @TildaDares can review it. |
multiple-popover-bug.mp4Hey @NARUDESIGNS @TildaDares @jywarren , I have added a demo video, you can check out the changes before and after adding the code. |
fixes #750
fixes #793
This is a PR for the multiple popover problem, all the popover buttons are being solved and committed in different PRs, as I have been told, every different changes should be made in different PRs,
You can review the code
@NARUDESIGNS @TildaDares
Thank You