Skip to content

one-way-input-mask with custom mask does not work after upgrade #114

@wuarmin

Description

@wuarmin

Hi,
following setup worked properly with ember-inputmask versions < 0.7

//mask-definition
import Inputmask from 'inputmask';

export function initialize(/* application */) {
  Inputmask.extendAliases({
    euro: {
      suffix: " €",
      groupSeparator: ".",
      radixPoint: ",",
      alias: "numeric",
      placeholder: "0",
      autoGroup: !0,
      digits: 2,
      digitsOptional: !1,
      clearMaskOnLostFocus: !1,
      autoUnmask: true,
      unmaskAsNumber: true
    }
  });
}

export default {
  initialize
};
{{one-way-input-mask value=12.58 mask="euro"}}

image
Since ember-inputmask > 0.7, the same output results in following output:
image
The given value (12.58) is multiplicated by 100. Why?
Can you help me?

thank you

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions