Refactor #3965 - Update for BaseDirective
parent
1f31d2ab2c
commit
22e6c7a53e
|
@ -57,7 +57,7 @@ export const BaseDirective = {
|
|||
Object.entries(option).forEach(([key, value]) => {
|
||||
let styledElement;
|
||||
|
||||
if (key === 'root' && directiveName !== 'ripple' && directiveName !== 'badge') styledElement = el;
|
||||
if (key === 'root' && directiveName !== 'badge') styledElement = el;
|
||||
else {
|
||||
styledElement = DomHandler.findSingle(el, `[data-pc-section="${ObjectUtils.convertToFlatCase(key)}"]`);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue