metrotranscom / doorway

component-based web framework for affordable housing management
Apache License 2.0
3 stars 1 forks source link

Unit Copying Issues #658

Open sarahlazarich opened 4 months ago

sarahlazarich commented 4 months ago

Babs has called out some issues she's run into when copying units during listing creation.

When drafting listings that charge rent based on income:

AC:

jaredcwhite commented 4 months ago

@sarahlazarich I spent some time on this, and I don't think I could reproduce it. I might have noticed it one time, but I could have been mistaken. I hope it's not one of those things that's very intermittent?

emilyjablonski commented 4 months ago

We chatted about the first issue, it's something that happens to me sometimes when I'm using a trackpad or a mouse, if you're focused into an input element it's native to the browser that you can scroll up and down to change the value, and sometimes it can get stuck in there

jaredcwhite commented 4 months ago

@emilyjablonski Yeah, it might be a funky aspect of how we're using type="number" input fields, and most of the instances I found in a codebase search are contained in that particular form. I wonder if it's best to add an event handler to disable mouse wheel changing numbers (possible solution here: https://stackoverflow.com/a/69497807), or instead switch to regular text input and use other attributes to force integer input, a number keyboard on mobile, etc. (looks like we could go with inputmode="numeric" pattern="[0-9]*" type="text" as mentioned here: https://css-tricks.com/finger-friendly-numerical-inputs-with-inputmode/#aa-a-better-solution-inputmode)

I ended up with a slightly different solution.

jaredcwhite commented 3 months ago

OK, so we'll fix this first in Core via https://github.com/bloom-housing/bloom/pull/4128, then bring the patch over.