mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 23:46:03 +01:00
fix(web/settings): run the close function when exiting with ESC
Apparently no one notices the focus was being trapped if you were to exit with ESC
This commit is contained in:
@@ -46,6 +46,7 @@ const Settings: React.FC = () => {
|
|||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
isCentered
|
isCentered
|
||||||
closeOnEsc
|
closeOnEsc
|
||||||
|
onEsc={closeSettings}
|
||||||
closeOnOverlayClick={false}
|
closeOnOverlayClick={false}
|
||||||
size="xs"
|
size="xs"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user