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

🐞 - maskitoSelectionChangeHandler does not work for Safari after programmatic update of textfield value #1929

Closed
2 of 9 tasks
nsbarsukov opened this issue Jan 13, 2025 · 0 comments · Fixed by #1930
Closed
2 of 9 tasks
Assignees
Labels
bug Something isn't working P1 This issue has high priority scope: kit Related to @maskito/kit

Comments

@nsbarsukov
Copy link
Member

Which package(s) are the source of the bug?

@maskito/kit

Playground Link

https://maskito.dev/recipes/postfix#by-postprocessor

Description

Reproduction 1

  1. Use Safari
  2. Open https://maskito.dev/recipes/postfix#by-postprocessor
  3. Make click on the right side of the textfield
Image

It results:

Image

Reproduction 2

  1. Use Safari
<input value="123" />

<script>
    // Comment this line to "fix" bug
    document.querySelector('input').value = '456';

    document.addEventListener('selectionchange', () => {
        console.log('=[selectionchange]=');
    });
</script>

https://stackblitz.com/edit/input-selection-change-safari?file=index.ts&devToolsHeight=50

Maskito version

3.2.1

Which browsers have you used?

  • Chrome
  • Firefox
  • Safari
  • Edge

Which operating systems have you used?

  • macOS
  • Windows
  • Linux
  • iOS
  • Android
@nsbarsukov nsbarsukov added bug Something isn't working P1 This issue has high priority scope: kit Related to @maskito/kit labels Jan 13, 2025
@nsbarsukov nsbarsukov self-assigned this Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 This issue has high priority scope: kit Related to @maskito/kit
Projects
None yet
1 participant