Dialog2 - footer issue in create issue as modal

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>
    <div class="aui-dialog2-content">
    <footer class="aui-dialog2-footer">
        <div class="aui-dialog2-footer-actions">
            <button id="dialog-submit-button" class="aui-button aui-button-primary">OK</button>

AJS.$("#dialog-show-button").on('click', function(e) {

AJS.$("#dialog-submit-button").on('click', function (e) {

You didn’t happen to get a fix for this?