We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d9266c commit f764e2dCopy full SHA for f764e2d
1 file changed
lib/CSSStyleDeclaration.js
@@ -174,8 +174,8 @@ class CSSStyleDeclaration {
174
if (this._parentRule || (this._ownerNode && this._setInProgress)) {
175
return;
176
}
177
- this._setInProgress = true;
178
try {
+ this._setInProgress = true;
179
const valueObj = parseCSS(
180
val,
181
{
@@ -246,8 +246,9 @@ class CSSStyleDeclaration {
246
247
} catch {
248
249
+ } finally {
250
+ this._setInProgress = false;
251
- this._setInProgress = false;
252
if (typeof this._onChange === "function") {
253
this._onChange(this.cssText);
254
0 commit comments