* fix(#753): add autoComplete attribute for remove suggestion of password managers * fix(#753): add autoComplete attribute for remove suggestion of password managers * Update front/src/modules/ui/inplace-input/components/InplaceInputDoubleText.tsx * Update front/src/modules/ui/inplace-input/components/InplaceInputDoubleText.tsx * Update front/src/modules/ui/inplace-input/components/InplaceInputDoubleText.tsx * Update front/src/modules/ui/inplace-input/components/InplaceInputDoubleText.tsx --------- Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
This commit is contained in:
@ -159,6 +159,7 @@ export function CommentThread({
|
|||||||
<CommentThreadActionBar commentThreadId={commentThread?.id ?? ''} />
|
<CommentThreadActionBar commentThreadId={commentThread?.id ?? ''} />
|
||||||
</StyledTopActionsContainer>
|
</StyledTopActionsContainer>
|
||||||
<StyledEditableTitleInput
|
<StyledEditableTitleInput
|
||||||
|
autoComplete="off"
|
||||||
autoFocus
|
autoFocus
|
||||||
placeholder={`${commentThread.type} title (optional)`}
|
placeholder={`${commentThread.type} title (optional)`}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
|
|||||||
@ -33,6 +33,7 @@ export function BoardCardEditableFieldText({
|
|||||||
placeholder={placeholder || ''}
|
placeholder={placeholder || ''}
|
||||||
autoFocus
|
autoFocus
|
||||||
value={internalValue}
|
value={internalValue}
|
||||||
|
autoComplete="off"
|
||||||
onChange={(event: ChangeEvent<HTMLInputElement>) => {
|
onChange={(event: ChangeEvent<HTMLInputElement>) => {
|
||||||
setInternalValue(event.target.value);
|
setInternalValue(event.target.value);
|
||||||
debouncedOnChange(event.target.value);
|
debouncedOnChange(event.target.value);
|
||||||
|
|||||||
@ -77,6 +77,7 @@ export function BoardColumnEditTitleMenu({
|
|||||||
<StyledEditModeInput
|
<StyledEditModeInput
|
||||||
value={internalValue}
|
value={internalValue}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
|
autoComplete="off"
|
||||||
autoFocus
|
autoFocus
|
||||||
/>
|
/>
|
||||||
</StyledEditTitleContainer>
|
</StyledEditTitleContainer>
|
||||||
|
|||||||
@ -30,6 +30,7 @@ export function DropdownMenuSearch(
|
|||||||
return (
|
return (
|
||||||
<DropdownMenuSearchContainer>
|
<DropdownMenuSearchContainer>
|
||||||
<StyledEditModeSearchInput
|
<StyledEditModeSearchInput
|
||||||
|
autoComplete="off"
|
||||||
{...props}
|
{...props}
|
||||||
placeholder={props.placeholder ?? 'Search'}
|
placeholder={props.placeholder ?? 'Search'}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -40,6 +40,7 @@ export function InplaceInputDoubleText({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<StyledInput
|
<StyledInput
|
||||||
|
autoComplete="off"
|
||||||
placeholder={secondValuePlaceholder}
|
placeholder={secondValuePlaceholder}
|
||||||
value={secondValue}
|
value={secondValue}
|
||||||
onChange={(event: ChangeEvent<HTMLInputElement>) => {
|
onChange={(event: ChangeEvent<HTMLInputElement>) => {
|
||||||
|
|||||||
@ -26,6 +26,7 @@ export function InplaceInputText({
|
|||||||
return (
|
return (
|
||||||
<InplaceInputContainer>
|
<InplaceInputContainer>
|
||||||
<InplaceInputTextInput
|
<InplaceInputTextInput
|
||||||
|
autoComplete="off"
|
||||||
autoFocus={autoFocus}
|
autoFocus={autoFocus}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
value={value}
|
value={value}
|
||||||
|
|||||||
@ -94,6 +94,7 @@ export function Checkbox({
|
|||||||
return (
|
return (
|
||||||
<StyledInputContainer>
|
<StyledInputContainer>
|
||||||
<StyledInput
|
<StyledInput
|
||||||
|
autoComplete="off"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
name="styled-checkbox"
|
name="styled-checkbox"
|
||||||
data-testid="input-checkbox"
|
data-testid="input-checkbox"
|
||||||
|
|||||||
@ -150,6 +150,7 @@ export function TextInput({
|
|||||||
{label && <StyledLabel>{label + (required ? '*' : '')}</StyledLabel>}
|
{label && <StyledLabel>{label + (required ? '*' : '')}</StyledLabel>}
|
||||||
<StyledInputContainer>
|
<StyledInputContainer>
|
||||||
<StyledInput
|
<StyledInput
|
||||||
|
autoComplete="off"
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
tabIndex={props.tabIndex ?? 0}
|
tabIndex={props.tabIndex ?? 0}
|
||||||
onFocus={handleFocus}
|
onFocus={handleFocus}
|
||||||
|
|||||||
@ -138,6 +138,7 @@ export function EditableCellDoubleTextEditMode({
|
|||||||
return (
|
return (
|
||||||
<StyledContainer ref={wrapperRef}>
|
<StyledContainer ref={wrapperRef}>
|
||||||
<StyledInput
|
<StyledInput
|
||||||
|
autoComplete="off"
|
||||||
autoFocus
|
autoFocus
|
||||||
placeholder={firstValuePlaceholder}
|
placeholder={firstValuePlaceholder}
|
||||||
ref={firstValueInputRef}
|
ref={firstValueInputRef}
|
||||||
@ -147,6 +148,7 @@ export function EditableCellDoubleTextEditMode({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<StyledInput
|
<StyledInput
|
||||||
|
autoComplete="off"
|
||||||
placeholder={secondValuePlaceholder}
|
placeholder={secondValuePlaceholder}
|
||||||
ref={secondValueInputRef}
|
ref={secondValueInputRef}
|
||||||
value={secondValue}
|
value={secondValue}
|
||||||
|
|||||||
@ -14,6 +14,7 @@ export function EditableCellPhone({ value, placeholder, onSubmit }: OwnProps) {
|
|||||||
<EditableCell
|
<EditableCell
|
||||||
editModeContent={
|
editModeContent={
|
||||||
<InplaceInputTextEditMode
|
<InplaceInputTextEditMode
|
||||||
|
autoComplete="off"
|
||||||
autoFocus
|
autoFocus
|
||||||
placeholder={placeholder || ''}
|
placeholder={placeholder || ''}
|
||||||
value={value}
|
value={value}
|
||||||
|
|||||||
@ -32,6 +32,7 @@ export function EditableCellText({
|
|||||||
autoFocus
|
autoFocus
|
||||||
value={value}
|
value={value}
|
||||||
onSubmit={(newText) => onSubmit?.(newText)}
|
onSubmit={(newText) => onSubmit?.(newText)}
|
||||||
|
autoComplete="off"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
nonEditModeContent={
|
nonEditModeContent={
|
||||||
|
|||||||
@ -27,6 +27,7 @@ export function EditableCellURL({
|
|||||||
editModeContent={
|
editModeContent={
|
||||||
<InplaceInputTextEditMode
|
<InplaceInputTextEditMode
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
|
autoComplete="off"
|
||||||
autoFocus
|
autoFocus
|
||||||
value={url}
|
value={url}
|
||||||
onSubmit={(newURL) => onSubmit?.(newURL)}
|
onSubmit={(newURL) => onSubmit?.(newURL)}
|
||||||
|
|||||||
@ -56,6 +56,7 @@ export function EditableCellChip({
|
|||||||
placeholder={placeholder || ''}
|
placeholder={placeholder || ''}
|
||||||
autoFocus
|
autoFocus
|
||||||
value={inputValue}
|
value={inputValue}
|
||||||
|
autoComplete="off"
|
||||||
onSubmit={(newValue) => onSubmit?.(newValue)}
|
onSubmit={(newValue) => onSubmit?.(newValue)}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user