fix(field): put submitted prop in interaction state mixin
This commit is contained in:
parent
2b2d6b34aa
commit
530cb31089
2 changed files with 11 additions and 4 deletions
|
|
@ -39,6 +39,13 @@ export const InteractionStateMixin = dedupeMixin(
|
|||
prefilled: {
|
||||
type: Boolean,
|
||||
},
|
||||
/**
|
||||
* True when user has attempted to submit the form, e.g. through a button
|
||||
* of type="submit"
|
||||
*/
|
||||
submitted: {
|
||||
type: Boolean,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
import { LitElement } from '@lion/core';
|
||||
import {
|
||||
defineCE,
|
||||
expect,
|
||||
fixture,
|
||||
unsafeStatic,
|
||||
html,
|
||||
defineCE,
|
||||
triggerFocusFor,
|
||||
triggerBlurFor,
|
||||
triggerFocusFor,
|
||||
unsafeStatic,
|
||||
} from '@open-wc/testing';
|
||||
import sinon from 'sinon';
|
||||
import { LitElement } from '@lion/core';
|
||||
import { InteractionStateMixin } from '../src/InteractionStateMixin.js';
|
||||
|
||||
export function runInteractionStateMixinSuite(customConfig) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue