File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,24 @@ module.exports = {
24
24
assetsPath = path ;
25
25
}
26
26
} ,
27
+
27
28
getAssetsPath : ( ) => String ( assetsPath ) ,
29
+
30
+ /*
31
+ * The app element allows you to specify the portion of your app that should be hidden (via aria-hidden)
32
+ to prevent assistive technologies such as screenreaders from reading content outside of the content of
33
+ your modal. It can be specified in the following ways:
34
+ * element
35
+ Modal.setAppElement(appElement);
36
+ * query selector - uses the first element found if you pass in a class.
37
+ Modal.setAppElement('#your-app-element');
38
+ */
28
39
setAppElement : ( el ) => {
29
40
if ( el ) {
30
41
appRoot = el ;
31
42
Modal . setAppElement ( el ) ;
32
43
}
33
44
} ,
45
+
34
46
getAppElement : ( ) => appRoot
35
47
} ;
You can’t perform that action at this time.
0 commit comments