Merge pull request #2921 from standardnotes/fix/disable-quick-type-suggestions-password-field

fix: disable quick type suggestions for password field
This commit is contained in:
Antonella Sgarlatta
2025-07-29 12:31:28 -03:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -30,6 +30,8 @@ const DecoratedPasswordInput = forwardRef((props: DecoratedInputProps, ref: Ref<
{...props}
ref={ref}
type={isToggled ? 'text' : 'password'}
autocomplete={false}
spellcheck={false}
right={[...rightSideDecorations, <Toggle isToggled={isToggled} setIsToggled={setIsToggled} />]}
/>
)

View File

@@ -11,6 +11,7 @@ import { useMediaQuery, MutuallyExclusiveMediaQueryBreakpoints } from '@/Hooks/u
import { SupportsPassiveListeners } from '@/Constants/Constants'
import { useLifecycleAnimation } from '@/Hooks/useLifecycleAnimation'
import { getScrollParent } from '@/Utils'
import { useAvailableSafeAreaPadding } from '@/Hooks/useSafeAreaPadding'
const DisableScroll = () => {
useDisableBodyScrollOnMobile()
@@ -63,6 +64,8 @@ const MobilePopoverContent = ({
},
})
const { hasBottomInset } = useAvailableSafeAreaPadding()
useEffect(() => {
if (!element) {
return
@@ -181,7 +184,8 @@ const MobilePopoverContent = ({
<div
ref={mergeRefs([setPopoverElement, addCloseMethod])}
className={classNames(
'z-1 absolute bottom-0 flex max-h-[calc(100%_-_max(var(--safe-area-inset-top),2rem))] min-h-[40%] w-full flex-col rounded-t-xl bg-passive-5 pb-safe-bottom',
'z-1 absolute bottom-0 flex max-h-[calc(100%_-_max(var(--safe-area-inset-top),2rem))] min-h-[40%] w-full flex-col rounded-t-xl bg-passive-5',
hasBottomInset && 'pb-safe-bottom',
forceFullHeightOnMobile && 'h-full',
)}
style={{