Fixed #5010 - Tooltip: missing nonce for inline styles

pull/5098/head
mertsincan 2024-01-15 02:07:41 +00:00
parent 1c659292e3
commit 48fe190625
1 changed files with 2 additions and 2 deletions

View File

@ -122,8 +122,8 @@ const BaseDirective = {
beforeMount: (el, binding, vnode, prevVnode) => {
const config = BaseDirective._getConfig(binding, vnode);
BaseStyle.loadStyle(undefined, { nonce: config?.csp?.nonce });
!el.$instance?.isUnstyled() && el.$instance?.$style?.loadStyle(undefined, { nonce: config?.csp?.nonce });
BaseStyle.loadStyle({ nonce: config?.csp?.nonce });
!el.$instance?.isUnstyled() && el.$instance?.$style?.loadStyle({ nonce: config?.csp?.nonce });
handleHook('beforeMount', el, binding, vnode, prevVnode);
},
mounted: (el, binding, vnode, prevVnode) => {