refactor: Use toggleAttribute natively where possible (#2494)
This commit is contained in:
committed by
dermotduffy
parent
2acec49b29
commit
48761f0478
@@ -81,11 +81,10 @@ export class StyleManager {
|
||||
|
||||
private _setDimmable(): void {
|
||||
const config = this._api.getConfigManager().getConfig();
|
||||
setOrRemoveAttribute(
|
||||
this._api.getCardElementManager().getElement(),
|
||||
!!config?.view.dim,
|
||||
'dimmable',
|
||||
);
|
||||
this._api
|
||||
.getCardElementManager()
|
||||
.getElement()
|
||||
.toggleAttribute('dimmable', !!config?.view.dim);
|
||||
}
|
||||
|
||||
private _setMinMaxHeight(): void {
|
||||
|
||||
Reference in New Issue
Block a user