diff --git a/lib/templates/url_select.mustache b/lib/templates/url_select.mustache index 4a10e238e35..845cee450b1 100644 --- a/lib/templates/url_select.mustache +++ b/lib/templates/url_select.mustache @@ -78,10 +78,9 @@ require(['jquery', 'core/custom_interaction_events'], function($, CustomEvents) { CustomEvents.define('#{{id}}', [CustomEvents.events.accessibleChange]); $('#{{id}}').on(CustomEvents.events.accessibleChange, function() { - if (!$(this).val()) { - return false; + if ($(this).val()) { + $('#{{formid}}').submit(); } - $('#{{formid}}').submit(); }); }); {{/js}}