Bug Fix: tab on MaskedInput for GeneratedItems it was clearing the value (#12409)

* fix tab issue

* add test coverage

* changelog

* update documentation

* remove meep:

* documentation
This commit is contained in:
Angel Garbarino
2021-08-24 08:59:37 -06:00
committed by GitHub
parent 629e09f756
commit 5f4f4b6738
6 changed files with 26 additions and 6 deletions

View File

@@ -11,12 +11,14 @@ import layout from '../templates/components/masked-input';
* @value={{attr.options.defaultValue}}
* @allowCopy={{true}}
* @onChange={{action "someAction"}}
* @onKeyUp={{action "onKeyUp"}}
* />
*
* @param [value] {String} - The value to display in the input.
* @param [allowCopy=null] {bool} - Whether or not the input should render with a copy button.
* @param [displayOnly=false] {bool} - Whether or not to display the value as a display only `pre` element or as an input.
* @param [onChange=Function.prototype] {Function|action} - A function to call when the value of the input changes.
* @param [onKeyUp=Function.prototype] {Function|action} - A function to call whenever on the dom event onkeyup. Generally passed down from higher level parent.
* @param [isCertificate=false] {bool} - If certificate display the label and icons differently.
*
*/
@@ -38,6 +40,7 @@ export default Component.extend({
},
displayOnly: false,
onKeyDown() {},
onKeyUp() {},
onChange() {},
actions: {
toggleMask() {
@@ -48,5 +51,8 @@ export default Component.extend({
this.set('value', value);
this.onChange(value);
},
handleKeyUp(name, value) {
this.onKeyUp(name, value);
},
},
});