mirror of
https://github.com/moodle/moodle.git
synced 2025-03-09 02:10:00 +01:00
MDL-43595: The dropdowns for editpdf stopped working due to a recent change.
This commit is contained in:
parent
267d4927b4
commit
cf1110eb62
@ -1649,7 +1649,8 @@ Y.extend(DROPDOWN, M.core.dialogue, {
|
||||
|
||||
body.on('clickoutside', function(e) {
|
||||
if (this.get('visible')) {
|
||||
if (e.target !== button && e.target.ancestor() !== button) {
|
||||
// Note: we need to compare ids because for some reason - sometimes button is an Object, not a Y.Node.
|
||||
if (e.target.get('id') !== button.get('id') && e.target.ancestor().get('id') !== button.get('id')) {
|
||||
e.preventDefault();
|
||||
this.hide();
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1649,7 +1649,8 @@ Y.extend(DROPDOWN, M.core.dialogue, {
|
||||
|
||||
body.on('clickoutside', function(e) {
|
||||
if (this.get('visible')) {
|
||||
if (e.target !== button && e.target.ancestor() !== button) {
|
||||
// Note: we need to compare ids because for some reason - sometimes button is an Object, not a Y.Node.
|
||||
if (e.target.get('id') !== button.get('id') && e.target.ancestor().get('id') !== button.get('id')) {
|
||||
e.preventDefault();
|
||||
this.hide();
|
||||
}
|
||||
|
@ -46,7 +46,8 @@ Y.extend(DROPDOWN, M.core.dialogue, {
|
||||
|
||||
body.on('clickoutside', function(e) {
|
||||
if (this.get('visible')) {
|
||||
if (e.target !== button && e.target.ancestor() !== button) {
|
||||
// Note: we need to compare ids because for some reason - sometimes button is an Object, not a Y.Node.
|
||||
if (e.target.get('id') !== button.get('id') && e.target.ancestor().get('id') !== button.get('id')) {
|
||||
e.preventDefault();
|
||||
this.hide();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user