File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -506,18 +506,15 @@ export abstract class UpdatingElement extends HTMLElement {
506
506
const needsFirstUpdate = ! ( this . _updateState & STATE_HAS_UPDATED ) ;
507
507
this . _markUpdated ( ) ;
508
508
if ( needsFirstUpdate ) {
509
+ this . _updateState = this . _updateState | STATE_HAS_UPDATED ;
509
510
this . firstUpdated ( changedProperties ) ;
510
511
}
511
512
this . updated ( changedProperties ) ;
512
513
} else {
513
- this . _markNotUpdated ( ) ;
514
+ this . _markUpdated ( ) ;
514
515
}
515
516
}
516
517
private _markUpdated ( ) {
517
- this . _changedProperties = new Map ( ) ;
518
- this . _updateState = this . _updateState & ~ STATE_UPDATE_REQUESTED | STATE_HAS_UPDATED ;
519
- }
520
- private _markNotUpdated ( ) {
521
518
this . _changedProperties = new Map ( ) ;
522
519
this . _updateState = this . _updateState & ~ STATE_UPDATE_REQUESTED ;
523
520
}
You can’t perform that action at this time.
0 commit comments