We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6f0107 commit 006cf8eCopy full SHA for 006cf8e
src/index.ts
@@ -5,7 +5,9 @@ export const BindOnceDirective: Directive = {
5
created(el, binding) {
6
for (const key in binding.value) {
7
const k = kebabCase(key)
8
- el.setAttribute(k, el.getAttribute(k) || binding.value[key])
+ if (!el.hasAttribute(k)) {
9
+ el.setAttribute(k, binding.value[key])
10
+ }
11
}
12
},
13
getSSRProps(binding) {
0 commit comments