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

Fix input range on Safari #352

Merged

Conversation

cristineguadelupe
Copy link
Contributor

phx-debounce="blur" is the problem

lib/kino/input.ex Outdated Show resolved Hide resolved
Copy link
Member

@jonatanklosko jonatanklosko left a comment

Choose a reason for hiding this comment

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

Good catch, it looks like safari doesn't support blur (or rather it blurs the input as soon as it's focused). So we should remove :blur from supported values for the range input. We have to:

  • update the the :debounce docs and mention the new default value
  • change the validation for range input to only allow integers

There's also one change on the Livebook side, but I will do it :)

@jonatanklosko jonatanklosko merged commit 2ce0c36 into livebook-dev:main Oct 6, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants