Skip to content

Commit 97f40e9

Browse files
committed
fix: #268 add details open atttribute to whitelist
1 parent b1a3e6f commit 97f40e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/purgecss/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,8 @@ class PurgeCSS {
730730
case "attribute":
731731
// `value` is a dynamic attribute, highly used in input element
732732
// the choice is to always leave `value` as it can change based on the user
733-
// idem for `checked`, `selected`
734-
isPresent = ["value", "checked", "selected"].includes(
733+
// idem for `checked`, `selected`, `open`
734+
isPresent = ["value", "checked", "selected", "open"].includes(
735735
nodeSelector.attribute
736736
)
737737
? true

0 commit comments

Comments
 (0)