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

$('.formula').click() event not firing when x,y coordinates supplied. #8

Open
cybershivanka opened this issue Mar 7, 2018 · 3 comments
Assignees

Comments

@cybershivanka
Copy link

I'm facing a issue with $('.formula').click() event not firing when x,y coordinates supplied.
without the coordinates as above works fine and even debugging can be done.

But, as below i have supplied the coordinates to make the cursor.available in formula box is not working and not get hits into the desired function within the pignose.build.js file.

$('.formula').click({x:174.55,y:49.67});

@KennethanCeyer KennethanCeyer self-assigned this Apr 13, 2018
@KennethanCeyer
Copy link
Owner

Hello @cybershivanka

You called $('.formula').click({x, y}), but The event did not fired right?

I will check this issue

Thank you

@KennethanCeyer
Copy link
Owner

KennethanCeyer commented Jun 17, 2018

click trigger doesn't exists at formulize
Did you tried pick() option?
Check this documentation

A follows code is an example of this issue

const $formulize = $('.formulize:first');
$formulize.pick({x: 174.55, y: 49.67 });

@KennethanCeyer
Copy link
Owner

When you use jQuery style calling as follows

const $formulize = $('.formulize');
$formulize.pick({x: 174.55, y: 49.67 });

It didn't work at v0.0.12.

But follows way works

const formulize: UI = $('.formulize').data('formulize');
formulize.pick({x: 174.55, y: 49.67 });

and v0.0.13 version both ways are working well (issue was fixed)

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

No branches or pull requests

2 participants