diff --git a/changelog/15025.txt b/changelog/15025.txt new file mode 100644 index 000000000..fd6973386 --- /dev/null +++ b/changelog/15025.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: masked values no longer give away length or location of special characters +``` diff --git a/ui/lib/core/addon/templates/components/masked-input.hbs b/ui/lib/core/addon/templates/components/masked-input.hbs index 70aba28a8..eb21d6ad5 100644 --- a/ui/lib/core/addon/templates/components/masked-input.hbs +++ b/ui/lib/core/addon/templates/components/masked-input.hbs @@ -4,11 +4,11 @@ data-test-field > {{#if this.displayOnly}} -
{{unless - this.showValue - (truncate this.value 20) - this.value - }}+ {{#if this.showValue}} +
{{this.value}}+ {{else}} +
***********+ {{/if}} {{else if this.inputField}}