mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Et2Tag: Fix read-only selects still have remove button on tag
This commit is contained in:
parent
66177ce89b
commit
b6627a482f
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
import {Et2Widget} from "../../Et2Widget/Et2Widget";
|
import {Et2Widget} from "../../Et2Widget/Et2Widget";
|
||||||
import {SlTag} from "@shoelace-style/shoelace";
|
import {SlTag} from "@shoelace-style/shoelace";
|
||||||
import {css, html, TemplateResult} from "lit";
|
import {css, html, nothing, TemplateResult} from "lit";
|
||||||
import {classMap} from "lit/directives/class-map.js";
|
import {classMap} from "lit/directives/class-map.js";
|
||||||
import shoelace from "../../Styles/shoelace";
|
import shoelace from "../../Styles/shoelace";
|
||||||
import {state} from "lit/decorators/state.js";
|
import {state} from "lit/decorators/state.js";
|
||||||
@ -81,7 +81,6 @@ export class Et2Tag extends Et2Widget(SlTag)
|
|||||||
{
|
{
|
||||||
super(...args);
|
super(...args);
|
||||||
this.pill = false;
|
this.pill = false;
|
||||||
this.removable = true;
|
|
||||||
|
|
||||||
this.handleKeyDown = this.handleKeyDown.bind(this);
|
this.handleKeyDown = this.handleKeyDown.bind(this);
|
||||||
this.handleChange = this.handleChange.bind(this);
|
this.handleChange = this.handleChange.bind(this);
|
||||||
@ -123,7 +122,7 @@ export class Et2Tag extends Et2Widget(SlTag)
|
|||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
></sl-icon-button>
|
></sl-icon-button>
|
||||||
`
|
`
|
||||||
: ''}
|
: nothing}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
return html`
|
return html`
|
||||||
|
Loading…
Reference in New Issue
Block a user