Quellcode durchsuchen

Multi-add - stag-suggest not being fully de-inited on create-row - fix

Vijayakrishnan vor 3 Jahren
Ursprung
Commit
3acb486664

+ 2 - 0
resources/views/app/patient/wizard-partials/common-script.blade.php

@@ -834,6 +834,7 @@ function newRow(_tr) {
     newTr.find('input, textarea').val('');
     newTr.find('textarea').attr('rows', 1).css({minHeight: '', height: ''});
     newTr.find('[stag-suggest-initialized]').removeAttr('stag-suggest-initialized');
+    newTr.find('.stag-suggestions-container').remove();
     return newTr;
 }
 
@@ -884,6 +885,7 @@ parentSegment
                 if (!_e.shiftKey || !$(this).is('textarea')) {
                     if($(this).closest('.stag-sheet').is('.allow-row-addition')) {
                         createAndMoveToNextRowInput($(this).closest('td'));
+                        initStagSuggest();
                     }
                     else {
                         moveToNextRowInput($(this).closest('td'), false);