Related to T2744. Removed ability to scroll within amount input fields in SendBch, Burn eToken amount input and Send eToken amount input. I think this is a welcome change and should be implemented.
Details
- Reviewers
bytesofman emack - Group Reviewers
Restricted Project - Commits
- rABC7a3969b8bf62: [Cashtab] Disabled scroll wheel within input fields
cd web/cashtab && npm start
navigate to Send screen
click on the 'Amount' input and scroll
observe that the input loses focus
navigate to send eToken screen
click on the 'Amount' input and scroll
observe that the input loses focus
on the same screen, click on the 'Burn eToken' input and scroll
observe that the input loses focus
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Because the intention here is to implement this across the entire app -- this onWheel prop should be added to the component where it is defined, i.e. in EnhancedInputs.js (unless it is not possible / practical to do so, in this case need some discussion in the diff about why)
Responding to review feedback, removed onWheel from inputProps in SendToken.js which was left in by mistake in last push, added comments to explain why target.blur() is used in this case instead of event.preventDefault().