refactor: #7090 for DynamicDialog

pull/7064/merge
Mert Sincan 2025-01-14 11:46:06 +00:00
parent cfdee00127
commit fc6acef8d8
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
</template> </template>
<script> <script>
import { uuid } from '@primeuix/utils';
import Dialog from 'primevue/dialog'; import Dialog from 'primevue/dialog';
import DynamicDialogEventBus from 'primevue/dynamicdialogeventbus'; import DynamicDialogEventBus from 'primevue/dynamicdialogeventbus';
import BaseDynamicDialog from './BaseDynamicDialog.vue'; import BaseDynamicDialog from './BaseDynamicDialog.vue';
@ -31,7 +32,7 @@ export default {
currentInstance: null, currentInstance: null,
mounted() { mounted() {
this.openListener = ({ instance }) => { this.openListener = ({ instance }) => {
const key = this.$attrSelector + '_dynamic_dialog'; const key = uuid() + '_dynamic_dialog';
instance.visible = true; instance.visible = true;
instance.key = key; instance.key = key;