We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 542c948 commit 99e04a3Copy full SHA for 99e04a3
src/assets/js/select-other.js
@@ -28,7 +28,7 @@
28
$('<option></option>').text(options.otherText)
29
);
30
31
- if (input.val()) {
+ var inputChange = function () {
32
var selectedOption = select.children().filter(function () { return $(this).text() == input.val(); });
33
if (selectedOption.length) {
34
input.hide();
@@ -39,7 +39,11 @@
39
$(this).prop('selected', true);
40
}
41
});
42
+ input.show();
43
44
+ }
45
+ if (input.val()) {
46
+ inputChange();
47
} else {
48
input.hide()
49
@@ -53,7 +57,10 @@
53
57
input.val(select.val());
54
58
55
59
60
+ input.on('change', function () {
61
62
+ })
56
63
64
65
-})(window, jQuery);
66
+})(window, jQuery);
0 commit comments