check attribute is null instead of any falsy value
This commit is contained in:
@@ -409,7 +409,7 @@ export class Replayer {
|
||||
for (const attributeName in mutation.attributes) {
|
||||
if (typeof attributeName === 'string') {
|
||||
const value = mutation.attributes[attributeName];
|
||||
if (value) {
|
||||
if (value !== null) {
|
||||
((target as Node) as Element).setAttribute(
|
||||
attributeName,
|
||||
value,
|
||||
|
||||
4
typings/record/collection.d.ts
vendored
Normal file
4
typings/record/collection.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { removedNodeMutation } from '../types';
|
||||
export declare function deepDelete(addsSet: Set<Node>, n: Node): void;
|
||||
export declare function isParentRemoved(removes: removedNodeMutation[], n: Node): boolean;
|
||||
export declare function isParentDropped(droppedSet: Set<Node>, n: Node): boolean;
|
||||
Reference in New Issue
Block a user