Skip to content

Commit

Permalink
🐛 Don't apply the custom-element options twice when a sync render is …
Browse files Browse the repository at this point in the history
…requested
  • Loading branch information
skerit committed Feb 23, 2024
1 parent 029c65b commit edc0c3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Allow Hawkejs syntax operators to be uppercased
* Allow `Hawkejs.RESULT` properties to be functions
* Add `Element.setStylesheetHandler(fnc)` to add custom stylesheet handling of custom elements
* Don't apply the custom-element options twice when a sync render is requested

## 2.3.17 (2024-02-19)

Expand Down
3 changes: 2 additions & 1 deletion lib/core/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,7 @@ Renderer.setMethod(function registerAssign(name, element, config) {
*
* @author Jelle De Loecker <[email protected]>
* @since 2.1.0
* @version 2.2.9
* @version 2.3.18
*
* @param {HTMLElement} element
*/
Expand Down Expand Up @@ -2110,6 +2110,7 @@ Renderer.setMethod(function ensureElementOptions(element) {

if (options) {
this.applySynchronousRenderElementOptions(element, options);
options = null;
}

// Make sure it hasn't rendered already
Expand Down

0 comments on commit edc0c3d

Please sign in to comment.