-
-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date picker changes #304
Date picker changes #304
Conversation
…ilk as the type. Also added inputmode=none attribute to all date pickers to prevent keyboard from opening on mobile browsers
Re: the static files — could you see if you get the same result from |
@cdubz I think it makes sense to have direct modification of date/time fields as mentioned in #284 as I have run into some of the scenarios mentioned. However, I may be wrong but I think the 99% use case on mobile will involve using the gui picker. The keyboard popping up every time you adjust a date/time is a very frustrating user experience. If we were able to come up with a compromise where by default on mobile it doesn't show the keyboard unless you manually chose to I think that would be ideal but as you mentioned I'm not sure if that's possible with the current library. I'll give |
@ntrecina could you open a new pr with just the breast milk autoselect change? That seems fine to me but I'd like to invite more discussion about the |
@cdubz Sure thing. |
I'm using BabyBuddy almost exclusively on mobile devices, so all my comments are valid for mobile. I still think separate button for GUI picker invocation that is placed adjacent to textboxt containing date and time is superior solution. |
@Expro I see -- you are advocating for not showing the picker when clicking in the field but only when clicking the little calendar icon next to the field, right? I'm not sure to what extent that behavior is configurable with the library but that approach does seem like a good middle ground if we can sort it out. @ntrecina what do you think? |
That right - I think editable field AND ability to launch picker by button / calendar icon covers both use cases intuitively and would be great if possible (as You have mentioned). |
That seems like a good compromise to satisfy both use cases. That being said I would still prefer an option (user preference maybe) to block keyboard input on mobile since my wife and I don't use it and it's nice having a large target to tap on rather than needing to tap on the calendar to avoid the keyboard opening. |
Summary
I also noticed a regression from 0a74061 where the readonly attribute was removed so mobile browsers were once again displaying the keyboard when tapping on the date picker field. I added the
inputmode=none
attribute which seems like it might be a better solution while still allowing the field to be editable via a keyboard if desired.