markmead / hyperjs

HyperJS is a component library for Alpine JS allowing developers to quickly copy and paste functionality into their projects 🛵
https://js.hyperui.dev
MIT License
378 stars 15 forks source link

Negative zero doesn't reset #55

Closed nickpreston24 closed 2 months ago

nickpreston24 commented 2 months ago

image

To reproduce:

  1. Navigate here to the example.
  2. Type 0 in the box, then change the cursor to be before the 0, and tap the hyphen -.

You'll get -0 or --0.

Hope this helps.

markmead commented 2 months ago

0 isn't negative or positive.