Skip to content

Commit

Permalink
add explanative comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Jul 10, 2024
1 parent 22e4f3f commit e70ae1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Form/SafariFormWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import type ChildrenProps from '@src/types/utils/ChildrenProps';

type SafariFormWrapperProps = ChildrenProps;

/**
* If we used any <input> without <form> wrapper, Safari 11+ would show the auto-fill suggestion popup.
*/
function SafariFormWrapper({children}: SafariFormWrapperProps) {
if (isSafari()) {
return <form>{children}</form>;
Expand Down

0 comments on commit e70ae1e

Please sign in to comment.