PolicyEngine / policyengine-app

PolicyEngine's free web app for computing the impact of public policy.
GNU Affero General Public License v3.0
41 stars 108 forks source link

The parameter input box does not parse strings with commas or currency symbols #967

Closed abhcs closed 9 months ago

abhcs commented 11 months ago

Try changing the parameter in

https://policyengine.org/us/policy?focus=gov.contrib.ubi_center.basic_income.amount.person.flat&reform=40063&region=us&timePeriod=2023&baseline=2

to 1,100. The string is parsed by the app as 1. Now try $11. This is parsed as 0.

Suggestion: We should use InputNumber here, like we do in VariableEditor for households.

anth-volk commented 11 months ago

We should probably wait to work on this until solving #1001.