fix: selection toolbar in CodeViewer (#9103)

This commit is contained in:
one 2025-08-13 11:37:31 +08:00 committed by GitHub
parent 2dd2bee940
commit ea8b7f317d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,8 @@ const CodeViewer = ({ children, language, expanded, unwrapped, onHeightChange, c
if (properties.style) {
shikiTheme.style.cssText += `${properties.style}`
}
shikiTheme.tabIndex = properties.tabindex
// FIXME: 临时解决 SelectionToolbar 无法弹出,走剪贴板回退的问题
// shikiTheme.tabIndex = properties.tabindex
}
})
return () => {