solidjs / solid

A declarative, efficient, and flexible JavaScript library for building user interfaces.
https://solidjs.com
MIT License
32.17k stars 918 forks source link

No value attribute on CSR, but present in SSR #2144

Closed filipw01 closed 3 months ago

filipw01 commented 5 months ago

Describe the bug

When using number (any number, both 0 and 1 result in the same behavior) on client side navigation no value for value attribute is rendered, but on SSR it is working as expected resulting in "0" and "1" for the value

Your Example Website or App

https://playground.solidjs.com/anonymous/d259eae5-b570-4925-97f0-e10d51afccd8

Steps to Reproduce the Bug or Issue

More steps to reproduce in related issue I opened in solid-start https://github.com/solidjs/solid-start/issues/1453

Expected behavior

I expected both to work the same turning the number into string

Screenshots or Videos

No response

Platform

Darwin 23.4.0 Darwin Kernel Version 23.4.0: root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64

node 20.12.1 npm 10.5.0 solid: 1.8.16

Additional context

No response