File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ $.widget( "ui.popup", {
29
29
}
30
30
31
31
this . options . trigger
32
- . attr ( "aria-haspop " , true )
32
+ . attr ( "aria-haspopup " , true )
33
33
. attr ( "aria-owns" , this . element . attr ( "id" ) ) ;
34
34
35
35
this . element
@@ -38,9 +38,11 @@ $.widget( "ui.popup", {
38
38
39
39
this . _bind ( this . options . trigger , {
40
40
click : function ( event ) {
41
- event . stopPropagation ( ) ;
42
41
event . preventDefault ( ) ;
43
- this . _open ( event ) ;
42
+ var that = this ;
43
+ setTimeout ( function ( ) {
44
+ that . _open ( event ) ;
45
+ } , 1 ) ;
44
46
}
45
47
} ) ;
46
48
@@ -68,6 +70,10 @@ $.widget( "ui.popup", {
68
70
. removeClass ( "ui-popup" )
69
71
. removeAttr ( "aria-hidden" )
70
72
. removeAttr ( "aria-expanded" ) ;
73
+
74
+ this . options . trigger
75
+ . removeAttr ( "aria-haspopup" )
76
+ . removeAttr ( "aria-owns" ) ;
71
77
72
78
if ( this . generatedId ) {
73
79
this . element . removeAttr ( "id" ) ;
You can’t perform that action at this time.
0 commit comments