the-djmaze / snappymail

Simple, modern & fast web-based email client
https://snappymail.eu
GNU Affero General Public License v3.0
998 stars 121 forks source link

Improve the contact search component when writing an email #1595

Closed fabiodepin closed 3 months ago

fabiodepin commented 4 months ago

Currently there are some problems with using the datalist, such as the use of arrows and enter. For those using a MacBook, there are more problems.

One suggestion is to change the component to the image below.

From: Screenshot from 2024-05-24 14-40-18

To: Screenshot from 2024-05-24 14-35-27

Thanks

the-djmaze commented 4 months ago

As you can read in the closed issues, SnappyMail is bound to the behavior of the browser.

If we develop our own custom datalist component we need to do a lot of work as there are many ways to respond to user events (mouse, keyboard, touch, pen, etc.). Currently i don't see any real benefits to extend the code size (javascript + css + html + aria) other then "it makes the UI beautiful". Because currently "it works" in any browser.

the-djmaze commented 4 months ago

But you can try and play around with https://codepen.io/iamsidd_j/pen/qBRWNQQ

fabiodepin commented 3 months ago

Hello,

I also have this improvement ready. I send PR as soon as I have time during the week, along with those other tasks.

Thanks