diff --git a/js/quiztech-assessment-builder.js b/js/quiztech-assessment-builder.js index 6a342f4..fd27865 100644 --- a/js/quiztech-assessment-builder.js +++ b/js/quiztech-assessment-builder.js @@ -356,10 +356,10 @@ jQuery(document).ready(function($) { // Remove placeholder if it exists $currentList.find('p').remove(); - // Update state and UI (update event will also fire, but good to be explicit) - updateStateFromDOM(); - updateTotalCost(); - updateLibraryButtons(); // Disable the 'Add' button in the library + // Update state and UI (The 'update' event below will handle state and cost) + // updateStateFromDOM(); // Let the 'update' event handle this + // updateTotalCost(); // Let the 'update' event handle this + updateLibraryButtons(); // Disable the 'Add' button in the library immediately } }).disableSelection(); // Prevent text selection while dragging