Skip to content

Commit

Permalink
Bump Rooster to patch (#2784) (#2785)
Browse files Browse the repository at this point in the history
* Resolve null sheet in convertInlineCss (#2784)

* init

* update

* update version
  • Loading branch information
BryanValverdeU committed Sep 4, 2024
1 parent c711390 commit 2a58f4f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ export function retrieveCssRules(doc: Document): CssRule[] {
const result: CssRule[] = [];

styles.forEach(styleNode => {
const sheet = styleNode.sheet as CSSStyleSheet;
const sheet = styleNode.sheet;

for (let ruleIndex = 0; ruleIndex < sheet.cssRules.length; ruleIndex++) {
const rule = sheet.cssRules[ruleIndex] as CSSStyleRule;
if (sheet) {
for (let ruleIndex = 0; ruleIndex < sheet.cssRules.length; ruleIndex++) {
const rule = sheet.cssRules[ruleIndex] as CSSStyleRule;

if (rule.type == CSSRule.STYLE_RULE && rule.selectorText) {
result.push({
selectors: splitSelectors(rule.selectorText),
text: rule.style.cssText,
});
if (rule.type == CSSRule.STYLE_RULE && rule.selectorText) {
result.push({
selectors: splitSelectors(rule.selectorText),
text: rule.style.cssText,
});
}
}
}

Expand Down
5 changes: 4 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"react": "9.0.0",
"main": "9.9.1",
"legacyAdapter": "8.62.1"
"legacyAdapter": "8.62.1",
"overrides": {
"roosterjs-content-model-core": "9.9.2"
}
}

0 comments on commit 2a58f4f

Please sign in to comment.