Skip to content

input cannot focus when switching webview #84216

Closed
@roguexiaohuihui

Description

@roguexiaohuihui

Issue Type: Bug
I created a webview with just an input tag in it, and I just asked input.focus()

1、The first time you open the webview you can focus properly
image
2、Switch to another document or webview
image

3、So let's go back to the first step, the webview,the focus is gone,just click the mouse down the webview and the focus will work

VS Code version: Code 1.39.0
OS version: Windows10

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitieswebviewWebview issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions