Skip to content

Conversation

@RaviAnand111
Copy link
Contributor

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

@gitpod-io
Copy link

gitpod-io bot commented Jan 18, 2022

@NARUDESIGNS
Copy link
Collaborator

Hey @RaviAnand111 well done!
Can you also help make short demo videos so that @TildaDares and I can see these changes?
Thank you!

$(':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) {
Copy link
Collaborator

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

Copy link
Contributor Author

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

@RaviAnand111
Copy link
Contributor Author

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.
Thanks alot for helping

@RaviAnand111
Copy link
Contributor Author

multiple-popover-bug.mp4

Hey @NARUDESIGNS @TildaDares @jywarren , I have added a demo video, you can check out the changes before and after adding the code.
ThankYou

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

Successfully merging this pull request may close these issues.

Multiple pop-ups at once when tool buttons are clicked.

2 participants