I have a Custom Field with a custom description - a link that opens a Dialog2.
It works fine in Jira 8.22 but makes a strange issue in Jira 9.4. → I getting a double footer in create issue as a modal , but works fine in create issue as a full screen (attached a screenshots).
This is the code inside the Description of the Custom Field:
<a id="dialog-show-button">{Some-Text}</a>
<section id="demo-dialog" class="aui-dialog2 aui-dialog2-small aui-layer" role="dialog" aria-hidden="true">
<header class="aui-dialog2-header">
<h2 class="aui-dialog2-header-main">{Some-Text}</h2>
<button class="aui-dialog2-header-close" aria-label="close">
<span class="aui-icon aui-icon-small aui-iconfont-close-dialog"></span>
</button>
</header>
<div class="aui-dialog2-content">
<p>{Some-Text}</p>
</div>
<footer class="aui-dialog2-footer">
<div class="aui-dialog2-footer-actions">
<button id="dialog-submit-button" class="aui-button aui-button-primary">OK</button>
</div>
</footer>
</section>
<script>
AJS.$("#dialog-show-button").on('click', function(e) {
e.preventDefault();
AJS.dialog2("#demo-dialog").show();
});
AJS.$("#dialog-submit-button").on('click', function (e) {
e.preventDefault();
AJS.dialog2("#demo-dialog").hide();
});
</script>