mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-23 14:23:39 -04:00
Fixed multi-language search
This commit is contained in:
@@ -70,10 +70,14 @@ export function setupClipboard(
|
||||
})
|
||||
|
||||
/* Initialize and setup clipboard */
|
||||
return fromEventPattern<ClipboardJS.Event>(next => {
|
||||
const clipboard = new ClipboardJS(".md-clipboard")
|
||||
clipboard.on("success", next)
|
||||
const clipboard$ = fromEventPattern<ClipboardJS.Event>(next => {
|
||||
new ClipboardJS(".md-clipboard").on("success", next)
|
||||
})
|
||||
|
||||
// TODO: integrate rendering of dialog
|
||||
|
||||
/* */
|
||||
return clipboard$
|
||||
.pipe(
|
||||
shareReplay(1)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user