mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
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:
@@ -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);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user