ItayXD / responsive-tooltip

WordPress plugin that help you create responsive and mobile-friendly tooltip to present tiny amount of hidden content - the tip.
https://wordpress.org/plugins/responsive-mobile-friendly-tooltip/
GNU General Public License v2.0
3 stars 5 forks source link

Odd close behavior on mobile #5

Closed dreg closed 8 years ago

dreg commented 8 years ago

Thank you for the fantastic plugin, saved me a ton of time. Super minor but clicking on the tooltip pop-up didn't close it as expected. I changed line 75:

tooltip.bind( 'click', remove_tooltip);

to:

tooltip.bind( 'click', function(){ remove_tooltip(); });

and it's working as expected now. Worth a patch in the future or a migration from .bind() to .on()?

ItayXD commented 8 years ago

Thanks for noting! Would you mind creating a pull request with your fix? I know it is very minor but I barely have time to work on it these days. I'll be glad if I could just login and approve the request. Also if you see anything else that needs to be fixed / changed please let me know. Itay

On Jul 20, 2016 8:32 PM, "dreg" notifications@github.com wrote:

Thank you for the fantastic plugin, saved me a ton of time. Super minor but clicking on the tooltip pop-up didn't close it as expected. I changed line 75:

tooltip.bind( 'click', remove_tooltip);

to:

tooltip.bind( 'click', function(){ remove_tooltip(); });

and it's working as expected now. Worth a patch in the future or a migration from .bind() to .on()?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ItayXD/responsive-tooltip/issues/5, or mute the thread https://github.com/notifications/unsubscribe-auth/ABzFDqiInAhV0t7a9SEnND3UMonuvwsvks5qXluagaJpZM4JRBPe .

dreg commented 8 years ago

Update code as pull request.