Skip to content

Commit 64c2bce

Browse files
committed
Respect negate property in attributeName
Co-authored-by: bernard-wagner@users.noreply.github.com
1 parent 4c1bdb1 commit 64c2bce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/option.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ class Option {
213213
*/
214214

215215
attributeName() {
216-
return camelcase(this.name().replace(/^no-/, ''));
216+
if (this.negate) {
217+
return camelcase(this.name().replace(/^no-/, ''));
218+
}
219+
return camelcase(this.name());
217220
}
218221

219222
/**

0 commit comments

Comments
 (0)