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

Multiple Tooltips in Math Blocks do not work #381

Open
BjoernLuig opened this issue Dec 23, 2024 · 2 comments
Open

Multiple Tooltips in Math Blocks do not work #381

BjoernLuig opened this issue Dec 23, 2024 · 2 comments

Comments

@BjoernLuig
Copy link
Contributor

Multiple Tooltips in Math Blocks do not work

It seems to be a Problem with the setTooltips() function, wich theoretically works with a function as parameter, which does throw a react-markdown warning and does not give a tooltip. This Problem persists over multiple math blocks.

I am currently fixing two other issues within the math blocks occurring with the new blockly version in the development branch. If someone has a short solution, I could do all in one. Otherwise, I would make the tooltips constant for now.

image
image
image

@mariopesch
Copy link
Member

mariopesch commented Dec 23, 2024

have you checked if var thisBlock = this is returning the current block?

@BjoernLuig
Copy link
Contributor Author

thisBlock refereed to the correct block, but the setTooltip function coud not handle any function as parameter, only strings.

I found a workaround by updateing the tooltip through the generators. See 382. This was thoroughly tested for all changed math blocks.

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

No branches or pull requests

2 participants