Skip to content

EmberInputMask does not play well with multiple masks property #143

@brunoocasali

Description

@brunoocasali

Hello!!

In my app I have a field with two kinds of masks:

<OneWayInputMask
  @mask={{array '999.999.999-99' '99.999.999/9999-99'}}
  @value={{this.value}}
  {{!-- @update={{this.update}} --}}
  @options={{hash oncomplete=(action this.onMaskFinished)}}
/>

The idea is simple, when any of the masks is complete I just want to call a function (covered in inputmask.js) to do some business logic there.

The problem is: The input does not allow more typing after the first mask is complete! I've checked if is a inputmask bug but I think is not, because everything works when I remove @update part (of course with bunch of console errors because @update is required by the component).

I've tried to reproduce this behaviour in tests right here in this repo, as placed in: #144

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions