Skip to content

Commit efaba5e

Browse files
authored
gw-prevent-duplicate-selections.js: Fixed an issue with placeholder value getting disabled.
1 parent 83924f8 commit efaba5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gravity-forms/gw-prevent-duplicate-selections.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function gwDisableDuplicates( $elem, $group, selected ) {
4747
}
4848

4949
let value = $elem.val();
50-
let $targets = $group.not( $elem ).not( '.gplc-disabled' ).not( '.gpi-disabled' );
50+
let $targets = $group.not( $elem ).not( '.gplc-disabled' ).not( '.gpi-disabled' ).not( '.gf_placeholder' );
5151
let isChecked = $elem.is( ':checked' );
5252

5353
// We use this to instruct Gravity Forms not to re-enable disabled duplicate options when

0 commit comments

Comments
 (0)