feat(select): add types

This commit is contained in:
Joren Broekema 2020-09-30 17:42:49 +02:00 committed by Thomas Allmer
parent 681788b990
commit 66c5f2cd36
3 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/select': minor
---
Add types for select package.

View file

@ -27,8 +27,6 @@ import { LionField } from '@lion/form-core';
* @customElement lion-select
* @extends {LionField}
*/
// eslint-disable-next-line no-unused-vars
export class LionSelect extends LionField {
connectedCallback() {
super.connectedCallback();

View file

@ -13,7 +13,7 @@ describe('lion-select', () => {
</select>
</lion-select>
`);
expect(lionSelect.querySelector('select').value).to.equal('nr2');
expect(lionSelect.querySelector('select')?.value).to.equal('nr2');
});
it('is accessible', async () => {