microsoft / calculator

Windows Calculator: A simple yet powerful calculator that ships with Windows
MIT License
29.75k stars 5.39k forks source link

After selecting a currency that does not allow decimal values, then switching to another converter, calculator will not allow decimal input #1832

Open Shidouuu opened 2 years ago

Shidouuu commented 2 years ago

Steps To Reproduce

  1. Goto Currency screen
  2. Select a currency that does not allow decimal values (such as JPY)
  3. Switch to another converteer (e.g. length)
  4. Cannot enter decimal values :(

Going back to the Currency screen and selecting a currency that does allow decimals fixes this.

https://user-images.githubusercontent.com/36283656/168670354-4137ea6e-6fdc-45f9-b567-0d3859c17f3d.mp4

DeclanGazil02 commented 2 years ago

I would like to fix this! Can this be assigned to me? This would be my first time contributing to an open source, so if anyone knew where this is handled in the code, that would be a ton of help!

DeclanGazil02 commented 2 years ago

Actually, I believe I have just fixed it, I will submit a PR soon.

DeclanGazil02 commented 2 years ago

Before I submit, may this thread be viewed and marked "triage approved", if applicable?