mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-25 01:58:39 +02:00
fix: prevent button stealing focus from url input (#212)
This commit is contained in:
@@ -113,6 +113,10 @@ export const UrlBar = memo(function UrlBar({
|
|||||||
iconColor="secondary"
|
iconColor="secondary"
|
||||||
icon={isLoading ? 'x' : submitIcon}
|
icon={isLoading ? 'x' : submitIcon}
|
||||||
hotkeyAction="http_request.send"
|
hotkeyAction="http_request.send"
|
||||||
|
onMouseDown={(e) => {
|
||||||
|
// Prevent the button from taking focus
|
||||||
|
e.preventDefault();
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user