Skip to content

Commit

Permalink
Fix empty value being replaced
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Feb 27, 2025
1 parent 7c976c1 commit e794524
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
18 changes: 9 additions & 9 deletions bundles/datastar-aliased.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions bundles/datastar-aliased.js.map

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions bundles/datastar.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions bundles/datastar.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion library/src/plugins/official/dom/attributes/bind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const Bind: AttributePlugin = {

const current = signals.value(signalName)
const input = (el as HTMLInputElement) || (el as HTMLElement)
const value = input.value || input.getAttribute('value') || ''
const value = input.value || ''

if (isCheckbox) {
const checked = input.checked || input.getAttribute('checked') === 'true'
Expand Down
4 changes: 2 additions & 2 deletions sdk/go/consts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e794524

Please sign in to comment.