File: 013-a11y-dropdown-toggle.patch

package info (click to toggle)
r-cran-bslib 0.9.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,412 kB
  • sloc: javascript: 13,349; makefile: 33; sh: 23
file content (13 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/inst/lib/bs-a11y-p/plugins/js/bootstrap-accessibility.js b/inst/lib/bs-a11y-p/plugins/js/bootstrap-accessibility.js
index db2f244..2e24faa 100644
--- a/inst/lib/bs-a11y-p/plugins/js/bootstrap-accessibility.js
+++ b/inst/lib/bs-a11y-p/plugins/js/bootstrap-accessibility.js
@@ -211,7 +211,7 @@ CC0: http://creativecommons.org/publicdomain/zero/1.0/
         }
         setTimeout(function() {
           if(!$.contains(that, document.activeElement)){
-            $this.parent().find('[data-toggle=dropdown]').dropdown('toggle')
+            $this.parent().find('[data-toggle=dropdown]').dropdown('hide')
           }
         }, 150)
        })