Skip to content

displayChar doesn't work when using pipe #1126

Description

@rdebeasi

Describe the bug
When I use IMask.pipe, the displayChar feature doesn't seem to have any effect. The same configuration works as expected when using IMaskInput from react-imask.

Thank you!

To Reproduce
https://codesandbox.io/p/sandbox/62vnkk

Expected behavior
To test, open the sandbox above and enter 123456789 into both inputs.

Expected behavior: Both inputs read XXX-XX-6789.

Actual behavior: The "with pipe" input reads 123-45-6789. The "with ImaskInput" input reads XXX-XX-6789.

Environment:

  • OS: macOS
  • Browser: Chrome + Safari
  • Version: Chrome 136, Safari 18.4
  • IMask version: react-imask 7.6.1
  • Framework/plugin version if used: React 18

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions