From 13d44bc4d82a47bb9f624c5ae2b68484fba0926b Mon Sep 17 00:00:00 2001 From: saifsultanc Date: Tue, 31 Dec 2024 12:42:48 +0530 Subject: [PATCH] `gppa-remove-empty-choices.js`: Fixed an issue with empty choices not getting removed. --- gp-populate-anything/gppa-remove-empty-choices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gp-populate-anything/gppa-remove-empty-choices.js b/gp-populate-anything/gppa-remove-empty-choices.js index b90f54716..67400b3cc 100644 --- a/gp-populate-anything/gppa-remove-empty-choices.js +++ b/gp-populate-anything/gppa-remove-empty-choices.js @@ -13,7 +13,7 @@ $containers.each( function() { } ); // Show/hide checkboxes when the field is manipulated. -$containers.bind( 'DOMNodeInserted DOMNodeRemoved', function() { +$containers.bind( 'DOMNodeInserted DOMNodeRemoved change.gppa', function() { gwizRemoveEmptyChoices( $( this ) ); } );