enter click hack (#1048)

* enter click hack

* css class fix:

Co-authored-by: Drew Ansbacher <drew.ansbacher@spiredigital.com>
This commit is contained in:
Drew Ansbacher
2022-01-10 12:44:12 -07:00
committed by Aiden McClelland
parent 1086ce13d2
commit f6d67142cb

View File

@@ -8,8 +8,9 @@
<ion-icon name="help-circle-outline"></ion-icon>
</ion-button>
<ion-label>{{ unionSpec.tag.name }}</ion-label>
<!-- class enter-click disables the enter click on the modal behind the select -->
<ion-select
[interfaceOptions]="{ message: getWarningText(unionSpec.warning) }"
[interfaceOptions]="{ message: getWarningText(unionSpec.warning), cssClass: 'enter-click' }"
slot="end"
placeholder="Select"
[formControlName]="unionSpec.tag.id"
@@ -57,8 +58,9 @@
<!-- enum -->
<ion-item *ngIf="spec.type === 'enum'">
<ion-label>{{ spec.name }}</ion-label>
<!-- class enter-click disables the enter click on the modal behind the select -->
<ion-select
[interfaceOptions]="{ message: getWarningText(spec.warning) }"
[interfaceOptions]="{ message: getWarningText(spec.warning), cssClass: 'enter-click' }"
slot="end"
placeholder="Select"
[formControlName]="entry.key"