From d85e0dcd1c87d2ce7ff91f0f510a48e98cef4ec4 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 23 May 2022 15:40:02 +0200 Subject: [PATCH] wait #5292 @0.5 --- src/public/bunchmultiple/bunchmultiple.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/public/bunchmultiple/bunchmultiple.js b/src/public/bunchmultiple/bunchmultiple.js index 058e082..1d0a03d 100644 --- a/src/public/bunchmultiple/bunchmultiple.js +++ b/src/public/bunchmultiple/bunchmultiple.js @@ -13,6 +13,10 @@ this.cleanTemplate(); + $(document).on('click', '.nav-link', function () { + $this.resize(); + }); + var initValues = this.element.data('values'); if (initValues.length === 0) { @@ -222,7 +226,7 @@ } // Handle nested multiple bunch var nested = []; - $(item).find('.subform>.bunchmultiple').each(function () { + $(item).find('.subform>.bunchfields>.bunchmultiple').each(function () { var newrand = $this.id + '_' + Math.round(Math.random() * 10000000); var sampleId = $(this).attr('id'); var html = replaceAll(sampleId, newrand, $(this).html()); @@ -290,6 +294,7 @@ jQuery(document).ready(function ($) { $(".bunchmultiple").bunchmultiple(); + }); jQuery.cachedScript = function (url, options) { -- 2.39.5