From 2e2c34e9b982db7f4aefba629bfc5d89163f6396 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 26 Oct 2021 15:51:49 +0200 Subject: [PATCH] wait #4838 @1 --- src/public/bunchmultiple/bunchmultiple.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/public/bunchmultiple/bunchmultiple.js b/src/public/bunchmultiple/bunchmultiple.js index 267afac..c10b8a0 100644 --- a/src/public/bunchmultiple/bunchmultiple.js +++ b/src/public/bunchmultiple/bunchmultiple.js @@ -53,12 +53,11 @@ ',select' + this.bmidselector + ',textarea' + this.bmidselector + ',.dropzone' + this.bmidselector, function () { - $this.update(); + $this.updateAndChange(); return true; }); - $(this.element).on('change', '.bunchmultiple .hiddenfield', function () { - console.log('change from above'); + $(this.element).on('change', '.bunchmultiple', function () { $this.update(); return true; }); @@ -156,9 +155,8 @@ }, updateAndChange: function () { - console.log('updateAndChange',this); this.update(); - $(this).find('.hiddenfield').trigger('change'); + $(this.element).trigger('change'); }, initItem: function (values) { -- 2.39.5