Skip to content

Commit ffe58c2

Browse files
author
Falseee
committed
check if given selected value is a 0, if it is a zero so return it as
string to prevent that jquery think its a boolean
1 parent e331680 commit ffe58c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.contextMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@
14281428
break;
14291429

14301430
case 'select':
1431-
item.$input.val(item.selected || '');
1431+
item.$input.val((item.selected === 0 ? "0" : item.selected) || '');
14321432
break;
14331433
}
14341434
}

0 commit comments

Comments
 (0)