Skip to content

Commit bb2e175

Browse files
Merge pull request SortableJS#55 from falstack/master
feat: add style attribute to HTML native attribute
2 parents 4e32fae + 4d929ba commit bb2e175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/tags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function isTransition(name) {
127127
}
128128

129129
function isHtmlAttribute(value) {
130-
return ["id", "class", "role"].includes(value) || value.startsWith("data-") || value.startsWith("aria-");
130+
return ["id", "class", "role", "style"].includes(value) || value.startsWith("data-") || value.startsWith("aria-");
131131
}
132132

133133
export { isHtmlTag, isHtmlAttribute, isTransition };

0 commit comments

Comments
 (0)