Refine client rule delete strike animation
This commit is contained in:
@@ -391,12 +391,12 @@ function LocalRulesPanel({
|
||||
key={rule._key}
|
||||
style={{ viewTransitionName: rule.removing ? 'none' : rule._key }}
|
||||
inert={rule.removing ? true : undefined}
|
||||
onAnimationEnd={(event) => {
|
||||
if (event.animationName === 'client-local-rule-leave') {
|
||||
onRemoveComplete(rule._key);
|
||||
}
|
||||
}}
|
||||
>
|
||||
<span
|
||||
className="client-delete-strike"
|
||||
aria-hidden="true"
|
||||
onAnimationEnd={() => onRemoveComplete(rule._key)}
|
||||
/>
|
||||
<button
|
||||
className="client-local-rule-enabled"
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user