每次打开此包@atlaskit/dropdown-menu 的下拉菜单时,我的控制台中都会出现此错误,而我的错误是这样的:popper.js:不推荐使用由空格分隔的偏移量,请使用逗号(, ) 反而。太感谢了
我去了popper.js
// Detect if the offset string contains a pair of values or a single one
// they could be separated by comma or space
var divider = fragments.indexOf(find(fragments, function (frag) {
return frag.search(/,|\s/) !== -1;
}));
if (fragments[divider] && fragments[divider].indexOf(',') === -1) {
console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');
} `