mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-11 03:51:07 +00:00
Convert entity picker to ha-combo (#11560)
* Convert entity picker to ha-combo * Update ha-entity-picker.ts * Handle empty better * Clear value when no device/area/entity
This commit is contained in:
@@ -31,11 +31,7 @@ export class HaSelector extends LitElement {
|
||||
@property({ type: Boolean }) public disabled = false;
|
||||
|
||||
public focus() {
|
||||
const input = this.shadowRoot!.getElementById("selector");
|
||||
if (!input) {
|
||||
return;
|
||||
}
|
||||
(input as HTMLElement).focus();
|
||||
this.shadowRoot!.getElementById("selector")?.focus();
|
||||
}
|
||||
|
||||
private get _type() {
|
||||
|
||||
Reference in New Issue
Block a user