Skip to content

Commit

Permalink
fix: bad logic in directives
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Mar 24, 2022
1 parent c4bf825 commit dc30b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/utils/directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function createReactiveDirective<T, U>(hook: DirectiveHook<T, unknown, U>
const bindings = new Set<DirectiveEffectBinding<T>>()
const stopEffect: DirectiveHook<T, unknown, U> = (el, binding) => {
const { arg } = binding
const attr = arg ?? 'textContent'
const attr = arg ?? ''
bindings.forEach(item => {
if (item.el === el && item.key === attr) {
stop(item.effect)
Expand Down

0 comments on commit dc30b58

Please sign in to comment.