Skip to content

Commit

Permalink
fix incorrect insertion order of stylesheets (#28108)
Browse files Browse the repository at this point in the history
## Summary

In the precendences Map every key is prefixed with `p`. This fixes one
case where this is missing.

## How did you test this change?

<!--
Demonstrate the code is solid. Example: The exact commands you ran and
their output, screenshots / videos if the pull request changes the user
interface.
How exactly did you verify that your PR solves the issue you wanted to
solve?
  If you leave this empty, your PR will very likely be closed.
-->
  • Loading branch information
sokra committed Jan 26, 2024
1 parent 6c64428 commit 7636126
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3559,7 +3559,7 @@ function insertStylesheetIntoRoot(
if (prior === last) {
precedences.set('last', instance);
}
precedences.set(precedence, instance);
precedences.set('p' + precedence, instance);

this.count++;
const onComplete = onUnsuspend.bind(this);
Expand Down

0 comments on commit 7636126

Please sign in to comment.