From 49d719e5f6d053ef4b7407a82f63d1ea6cb91c85 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 28 Feb 2023 11:12:50 -0700 Subject: [PATCH] Et2DropdownButton: If readonly, display / render nothing does not affect disabled, which still displays as disabled --- api/js/etemplate/Et2DropdownButton/Et2DropdownButton.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/js/etemplate/Et2DropdownButton/Et2DropdownButton.ts b/api/js/etemplate/Et2DropdownButton/Et2DropdownButton.ts index f22f089862..eacf1837c9 100644 --- a/api/js/etemplate/Et2DropdownButton/Et2DropdownButton.ts +++ b/api/js/etemplate/Et2DropdownButton/Et2DropdownButton.ts @@ -121,6 +121,10 @@ export class Et2DropdownButton extends Et2widgetWithSelectMixin(Et2Button) render() { + if(this.readonly) + { + return ''; + } return html`