Преглед на файлове

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

Vijayakrishnan преди 3 години
родител
ревизия
3acb486664
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      resources/views/app/patient/wizard-partials/common-script.blade.php

+ 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);