fix: type info in OverlayMixinTypes
This commit is contained in:
parent
1340c1bd61
commit
d94df1a8f9
3 changed files with 3 additions and 9 deletions
|
|
@ -5,7 +5,6 @@ import { isEqualConfig } from './utils/is-equal-config.js';
|
|||
/**
|
||||
* @typedef {import('../types/OverlayConfig').OverlayConfig} OverlayConfig
|
||||
* @typedef {import('../types/OverlayMixinTypes').DefineOverlayConfig} DefineOverlayConfig
|
||||
* @typedef {import('../types/OverlayMixinTypes').OverlayHost} OverlayHost
|
||||
* @typedef {import('../types/OverlayMixinTypes').OverlayMixin} OverlayMixin
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@ export declare class OverlayHost {
|
|||
get config(): OverlayConfig;
|
||||
set config(value: OverlayConfig);
|
||||
|
||||
open(): void;
|
||||
close(): void;
|
||||
toggle(): void;
|
||||
open(): Promise<void>;
|
||||
close(): Promise<void>;
|
||||
toggle(): Promise<void>;
|
||||
/**
|
||||
* Sometimes it's needed to recompute Popper position of an overlay, for instance when we have
|
||||
* an opened combobox and the surrounding context changes (the space consumed by the textbox
|
||||
|
|
|
|||
|
|
@ -247,11 +247,6 @@ export class LionSelectRich extends SlotMixin(ScopedElementsMixin(OverlayMixin(L
|
|||
this._onFormElementsChanged();
|
||||
}
|
||||
|
||||
// TODO: move to overlayMixin and offer open and close
|
||||
toggle() {
|
||||
this.opened = !this.opened;
|
||||
}
|
||||
|
||||
/**
|
||||
* In the select disabled options are still going to a possible value for example
|
||||
* when prefilling or programmatically setting it.
|
||||
|
|
|
|||
Loading…
Reference in a new issue