atomiks / tippyjs

Tooltip, popover, dropdown, and menu library
https://atomiks.github.io/tippyjs/
MIT License
11.91k stars 518 forks source link

Pass plugins to `validateProps` in `setDefaultProps` #1025

Closed KABBOUCHI closed 2 years ago

KABBOUCHI commented 2 years ago

Plugins are not used when validating props in setDefaultProps

import tippy, { followCursor } from 'tippy.js';

tippy.setDefaultProps({
    followCursor: true,
    plugins: [followCursor],
})
tippy.js

`followCursor` is not a valid prop. You may have spelled it incorrectly, or if it's a plugin, forgot to pass it in an array as props.plugins. 

All props: https://atomiks.github.io/tippyjs/v6/all-props/
Plugins: https://atomiks.github.io/tippyjs/v6/plugins/

👷‍ This is a development-only message. It will be removed in production.
atomiks commented 2 years ago

Thanks