fix(search): allow paste in search box (#338)
This commit is contained in:
@@ -373,9 +373,13 @@ export class Application extends StatelessComponent<ApplicationProps> {
|
||||
}
|
||||
|
||||
onDocumentPaste = (ev: Event) => {
|
||||
if (document.activeElement != null && document.activeElement.nodeName === "INPUT")
|
||||
return
|
||||
|
||||
ev.preventDefault()
|
||||
ev.stopPropagation()
|
||||
|
||||
|
||||
const clipboardData = (ev as ClipboardEvent).clipboardData
|
||||
if (!clipboardData) return
|
||||
const pasted = clipboardData.getData('text')
|
||||
|
||||
Reference in New Issue
Block a user