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 3160d8a commit 612635aCopy full SHA for 612635a
1 file changed
src/attributes/attr.ts
@@ -31,6 +31,8 @@ function attr ( this: Cash, attr?: string | plainObject, value?: string ) {
31
32
}
33
34
+ if ( value === undefined ) return this;
35
+
36
if ( value === null ) return this.removeAttr ( attr );
37
38
return this.each ( ( i, ele ) => { ele.setAttribute ( attr, value ) } );
0 commit comments