Skip to content
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

[16.0][FIX] web_widget_numeric_step: Remove focus to avoid annoying flickering effect #2909

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

CarlosRoca13
Copy link
Contributor

The focus introduced on the 16.0 migration is causing a flickering effect that is a bit annoying and does not make complete sense, because if you click more than once the cursor is positioned at the end of the text, which makes it difficult to edit the input.

The counterpart of these changes is that to edit the input using the keyboard we will have to click on the field. Although this is how the module has been operating since its inception.

Before this changes:
parpadeo

After this changes:
no parpadeo

cc @Tecnativa TT50439

ping @chienandalu @pedrobaeza

…ing effect

The focus introduced on the 16.0 migration is causing a flickering effect
that is a bit annoying and does not make complete sense, because if you
click more than once the cursor is positioned at the end of the text,
which makes it difficult to edit the input.

The counterpart of these changes is that to edit the input using the
keyboard we will have to click on the field. Although this is how the
module has been operating since its inception.
@OCA-git-bot
Copy link
Contributor

Hi @rafaelbn, @yajo,
some modules you are maintaining are being modified, check this out!

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I see now that the flickering is a little bit less annoying with the regular theme (I tested it with web_theme_classic installed in the runboat)... In the one hand, we lived without this focus for several versions without noticing it, in the other hand is a nice UX touch...

@pedrobaeza pedrobaeza added this to the 16.0 milestone Aug 8, 2024
@pedrobaeza
Copy link
Member

It was changed by @yajo. Let's see the reasons for that change. At first sight, I would say the idea was to click on -/+ and have the focus for refining the amount. If the flickering is not very annoying, we can live with it.

@chienandalu
Copy link
Member

Not really, it was introduced in the migration for v16 and @yajo disabled it for touch devices

@pedrobaeza
Copy link
Member

Uhm, then it was @dsolanki-initos

@CarlosRoca13
Copy link
Contributor Author

I think the focus doesn't contribute much, since in the end, you're going to have to position the cursor where you want to modify the value. Also, I think the module's scope isn't meant to cover the need to manually modify the input... That's what the buttons and the scroll are for. Don't you think the same?

Copy link
Member

@yajo yajo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it doesn't add value in desktop, and it works better now. Thanks!

Copy link
Member

@yajo yajo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah sorry, bad button. Approving with the correct button now 😆

@pedrobaeza
Copy link
Member

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-2909-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 0db355e into OCA:16.0 Aug 8, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 3760f16. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 16.0-FIX-web_widget_numeric_step branch August 8, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants