MDL-68378 core: url_select listens to accessibleChange event

This commit is contained in:
Shamim Rezaie 2020-03-17 09:28:36 +11:00
parent a97c40cf83
commit 2a14ef789b

View File

@ -75,8 +75,9 @@
</div>
{{^showbutton}}
{{#js}}
require(['jquery'], function($) {
$('#{{id}}').change(function() {
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;
}