-
Notifications
You must be signed in to change notification settings - Fork 41
[Snyk] Upgrade react-hook-form from 7.12.2 to 7.53.2 #5308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: staging
Are you sure you want to change the base?
Changes from all commits
0219728
9a5c033
402f56c
1dd2cab
2dc9f40
3b1ecb5
55f1839
01563f2
84436d3
ae261ca
1ada663
ffaeff4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -94,7 +94,7 @@ | |
| "react-google-recaptcha": "2.1.0", | ||
| "react-gtm-module": "2.0.11", | ||
| "react-highlight-words": "0.17.0", | ||
| "react-hook-form": "7.12.2", | ||
| "react-hook-form": "7.61.1", | ||
sanmont3drepo marked this conversation as resolved.
Show resolved
Hide resolved
sanmont3drepo marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug Report 5308-004 TicketFilter.mp4There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug Report 5308-005 GroupFilter.mp4There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| "react-intl": "5.21.0", | ||
| "react-is": "17.0.2", | ||
| "react-konva": "17.0.2-5", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| /** | ||
| * Copyright (C) 2025 3D Repo Ltd | ||
| * | ||
| * This program is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU Affero General Public License as | ||
| * published by the Free Software Foundation, either version 3 of the | ||
| * License, or (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU Affero General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU Affero General Public License | ||
| * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| */ | ||
|
|
||
| import { useRef, useEffect } from "react"; | ||
|
|
||
| export const useChangeAndBlur = (value, onChange, onBlur) => { | ||
| const shouldBlur = useRef(false); | ||
|
|
||
| useEffect(() => { | ||
| if (!shouldBlur.current) return; | ||
| shouldBlur.current = false; | ||
| onBlur?.() | ||
| }, [value, onBlur]); | ||
|
|
||
| return (val) => { | ||
| shouldBlur.current = true; | ||
| onChange?.(val); | ||
| } | ||
| }; |

Uh oh!
There was an error while loading. Please reload this page.