Это структура ионного модального окна.
Код: Выделить всё
{{offer.title[lg]}}
style="
margin-left: 12px;
margin-right: 12px;
margin-top: 8px;
color: var(--ion-color-modal-description);
"
>
{{offer.text[lg]}}
{{ "OFFERS.EXPIRY" | translate }} {{offer.expirationDate | date :
"MMM dd, HH:mm"}}
{{ "OFFERS.REDEEM" | translate }}
and then
openAnotherModal(nextModalId: string) {
const modalElement = document.getElementById(nextModalId);
modalElement?.setAttribute('is-open', 'true'); // Open the next modal
}
closeAnotherModal(modalId: string) {
const modalElement = document.getElementById(modalId);
modalElement?.setAttribute('is-open', 'false'); // Close the modal
}
Моя проблема заключается в использовании этой функции закрытия и открытия системы при одновременном вызове, тогда она будет работать, но функциональность кнопки закрытия не работает, но она работает, если я использую modal_s.dismiss () но если однажды вызвать это, то дальше openModal не будет работать, какое должно быть решение, я очень новичок в ионной платформе, пожалуйста, помогите
Подробнее здесь: https://stackoverflow.com/questions/793 ... se-problem
Мобильная версия