提交 e88b99f6 编写于 作者: P plainheart

fix(tooltip): fix potential NPE in `toCSSVendorPrefix` function.

上级 73a9f6e7
......@@ -53,6 +53,9 @@ export const TRANSITION_VENDOR = testStyle(
);
export function toCSSVendorPrefix(styleVendor: string, styleProp: string) {
if (!styleVendor) {
return styleProp;
}
styleProp = toCamelCase(styleProp, true);
const idx = styleVendor.indexOf(styleProp);
styleVendor = idx === -1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册