Skip to content

Commit

Permalink
chore: ignores navigator warning
Browse files Browse the repository at this point in the history
  • Loading branch information
geotrev committed Jun 4, 2024
1 parent 18cc3e8 commit 2ff732d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/forms/src/elements/common/Label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const Label = React.forwardRef<HTMLLabelElement, ILabelProps>((props, ref
* See: https://bugzilla.mozilla.org/show_bug.cgi?id=559506
*/
const onLabelSelect = (e: React.KeyboardEvent<HTMLInputElement>) => {
// eslint-disable-next-line n/no-unsupported-features/node-builtins
const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;

if (fieldContext && isFirefox && e.target instanceof Element) {
Expand Down

0 comments on commit 2ff732d

Please sign in to comment.