Milkdown / milkdown

🍼 Plugin driven WYSIWYG markdown editor framework.
https://milkdown.dev
MIT License
8.64k stars 386 forks source link

[Bug]After updating the plugin-tooltip to version 7.4.0, it is no longer functioning properly.Has there been any API change in this version? #1409

Closed skylkw closed 1 month ago

skylkw commented 1 month ago

Initial checklist

Affected packages and versions

@milkdown/plugin-tooltip": "^7.4.0"

Link to runnable example

No response

Steps to reproduce

Update milkdown/plugin-tooltip to the latest version.The react-tooltip in the examples is not working properly, as the tooltip remains visible constantly.

Expected behavior

![Uploading Snipaste_2024-07-09_13-55-02.png…]()

Actual behavior

![Uploading Snipaste_2024-07-09_13-55-02.png…]()

Runtime

Chrome

OS

Windows

Build and bundle tools

Vite

skylkw commented 1 month ago
Snipaste_2024-07-09_13-55-02
skylkw commented 1 month ago
Snipaste_2024-07-09_13-53-23
Saul-Mirone commented 1 month ago

The tooltip plugin has migrated from tippy to floating-ui because tippy has been deprecated. There're not many changes about API. You just need to add absolute data-[show=false]:hidden to your tooltip container. Please check the updated example here: https://github.com/Milkdown/examples/commit/41cfac0540ac07dd5f1d3d7da846bb4dd7b9b123