Browse Source

fix question list

master
mortezaei 6 days ago
parent
commit
ea11c99606
  1. 8
      src/components/Componentes/question-birthplace.tsx
  2. 8
      src/components/Componentes/question-dropdown.tsx
  3. 24
      src/components/Componentes/question-number.tsx
  4. 15
      src/components/Componentes/question-phone.tsx
  5. 8
      src/components/Componentes/question-sheet.tsx
  6. 6
      src/components/Componentes/question-text.tsx

8
src/components/Componentes/question-birthplace.tsx

@ -482,6 +482,14 @@ export function QuestionBirthplace({
<input
ref={cityInputRef}
type="text"
name="city_field"
autoComplete="one-time-code"
autoCorrect="off"
autoCapitalize="none"
spellCheck="false"
data-lpignore="true"
data-1p-ignore="true"
data-form-type="other"
data-no-auto-focus
disabled={disabled}
value={cityInput}

8
src/components/Componentes/question-dropdown.tsx

@ -222,6 +222,14 @@ export function QuestionDropdown({
<input
ref={searchInputRef}
type="text"
name="search_field"
autoComplete="one-time-code"
autoCorrect="off"
autoCapitalize="none"
spellCheck="false"
data-lpignore="true"
data-1p-ignore="true"
data-form-type="other"
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
placeholder="Search..."

24
src/components/Componentes/question-number.tsx

@ -189,6 +189,14 @@ export default function QuestionNumber({
<input
type="text"
inputMode="decimal"
name="number_field"
autoComplete="one-time-code"
autoCorrect="off"
autoCapitalize="none"
spellCheck="false"
data-lpignore="true"
data-1p-ignore="true"
data-form-type="other"
required={question.required && !disabled}
disabled={disabled || Boolean(derivedFromQuestion)}
placeholder={dynamicPlaceholder}
@ -295,6 +303,14 @@ export default function QuestionNumber({
<input
ref={currencySearchInputRef}
type="text"
name="search_field"
autoComplete="one-time-code"
autoCorrect="off"
autoCapitalize="none"
spellCheck="false"
data-lpignore="true"
data-1p-ignore="true"
data-form-type="other"
value={currencySearchQuery}
onChange={(e) => setCurrencySearchQuery(e.target.value)}
placeholder={locale === "fa" ? "جستجو..." : "Search..."}
@ -378,6 +394,14 @@ export default function QuestionNumber({
<QuestionTitle question={question} />
<input
type="number"
name="number_field"
autoComplete="one-time-code"
autoCorrect="off"
autoCapitalize="none"
spellCheck="false"
data-lpignore="true"
data-1p-ignore="true"
data-form-type="other"
required={question.required && !disabled}
disabled={disabled || Boolean(derivedFromQuestion)}
min={min || undefined}

15
src/components/Componentes/question-phone.tsx

@ -611,9 +611,14 @@ export function QuestionPhone({
<input
type="tel"
inputMode="tel"
autoComplete="off"
name="phone_field"
autoComplete="one-time-code"
autoCorrect="off"
autoCapitalize="none"
spellCheck="false"
data-lpignore="true"
data-1p-ignore="true"
data-form-type="other"
disabled={disabled}
placeholder={question.extras.placeHolder?.replace(/^\+\d+\s*/, "")}
value={phoneValue}
@ -719,6 +724,14 @@ export function QuestionPhone({
<input
ref={searchInputRef}
type="text"
name="search_field"
autoComplete="one-time-code"
autoCorrect="off"
autoCapitalize="none"
spellCheck="false"
data-lpignore="true"
data-1p-ignore="true"
data-form-type="other"
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
placeholder={searchPlaceholder}

8
src/components/Componentes/question-sheet.tsx

@ -281,6 +281,14 @@ export function QuestionSheet({ question, disabled }: QuestionSheetProps) {
</svg>
<input
type="text"
name="search_field"
autoComplete="one-time-code"
autoCorrect="off"
autoCapitalize="none"
spellCheck="false"
data-lpignore="true"
data-1p-ignore="true"
data-form-type="other"
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
placeholder={searchPlaceholder}

6
src/components/Componentes/question-text.tsx

@ -103,11 +103,12 @@ export default function QuestionText({
type="text"
inputMode="text"
name="text_field"
autoComplete="off"
autoComplete="one-time-code"
autoCorrect="off"
autoCapitalize="none"
spellCheck="false"
data-lpignore="true"
data-1p-ignore="true"
data-form-type="other"
value={localValue}
onChange={(e) => handleChange(e.target.value)}
@ -149,11 +150,12 @@ export default function QuestionText({
inputMode={isNumericQuestion ? "numeric" : "text"}
pattern={isNumericQuestion ? "[0-9]*" : undefined}
name="text_field"
autoComplete="off"
autoComplete="one-time-code"
autoCorrect="off"
autoCapitalize="none"
spellCheck="false"
data-lpignore="true"
data-1p-ignore="true"
data-form-type="other"
value={localValue}
onChange={(e) => handleChange(e.target.value)}

Loading…
Cancel
Save