mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 21:26:11 +02:00
🐛 Fix styles not being inherited (#5717)
This commit is contained in:
parent
a6485b93b7
commit
8145eb89d7
1 changed files with 10 additions and 0 deletions
|
@ -358,6 +358,16 @@ export class SelectionController extends EventTarget {
|
|||
detail: this.#currentStyle,
|
||||
})
|
||||
);
|
||||
} else {
|
||||
const firstInline = this.#textEditor.root?.firstElementChild?.firstElementChild;
|
||||
if (firstInline) {
|
||||
this.#updateCurrentStyle(firstInline);
|
||||
this.dispatchEvent(
|
||||
new CustomEvent("stylechange", {
|
||||
detail: this.#currentStyle,
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue