mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
explorer: fix text input not getting focus when clicked
All user controls should stop propagation of events that are handled.
This commit is contained in:
@@ -95,6 +95,7 @@ const FileNameFormGroup: React.VoidFunctionComponent<FileNameFormGroupProps> = (
|
||||
inputRef={inputRef}
|
||||
intent={fileNameIntent}
|
||||
rightElement={<Tag aria-hidden>{fileExtension}</Tag>}
|
||||
onMouseDown={(e) => e.stopPropagation()}
|
||||
onChange={(e) => onChange(e.target.value)}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
Reference in New Issue
Block a user