mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
UI: fix default values resetting form inputs (#22458)
This commit is contained in:
@@ -26,7 +26,8 @@ module('Integration | Component | form field', function (hooks) {
|
||||
};
|
||||
|
||||
const setup = async function (attr) {
|
||||
const model = EmberObject.create({});
|
||||
// ember sets model attrs from the defaultValue key, mimicking that behavior here
|
||||
const model = EmberObject.create({ [attr.name]: attr.options?.defaultValue });
|
||||
const spy = sinon.spy();
|
||||
this.set('onChange', spy);
|
||||
this.set('model', model);
|
||||
|
||||
Reference in New Issue
Block a user