penumbra-zone / web

Apache License 2.0
10 stars 7 forks source link

fix(minifront): #1326: add `useWheelPrevent` hook #1346

Closed VanishMax closed 1 week ago

VanishMax commented 1 week ago

Closes #1326

Prevents HTML input field from changing the value on wheel event

changeset-bot[bot] commented 1 week ago

⚠️ No Changeset found

Latest commit: 4df02a8db6c4cd21d34c959a22c2bd6f9b14bbae

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

grod220 commented 1 week ago

Nice, can you confirm this is fixed for the swap, send, staking, and ibc forms?

VanishMax commented 1 week ago

@grod220 right, I didn't apply it elsewhere. Created a NumberInput component with built-in behavior of preventing the scroll