Disable Safari automatic corection on s3 input fields

This commit is contained in:
Greg Colker 2023-05-12 10:44:19 -04:00
parent e58e434fbd
commit a6daeed85f

View File

@ -93,6 +93,7 @@ export const StoragePrefs = () => {
required required
id="endpoint" id="endpoint"
type="url" type="url"
autoCorrect="off"
defaultValue={s3.credentials?.endpoint} defaultValue={s3.credentials?.endpoint}
{...register('endpoint', { required: true })} {...register('endpoint', { required: true })}
className="input default-ring bg-gray-50" className="input default-ring bg-gray-50"
@ -107,6 +108,7 @@ export const StoragePrefs = () => {
required required
id="key" id="key"
type="text" type="text"
autoCorrect="off"
defaultValue={s3.credentials?.accessKeyId} defaultValue={s3.credentials?.accessKeyId}
{...register('accessId', { required: true })} {...register('accessId', { required: true })}
className="input default-ring bg-gray-50" className="input default-ring bg-gray-50"
@ -121,6 +123,7 @@ export const StoragePrefs = () => {
required required
id="secretAccessKey" id="secretAccessKey"
type="text" type="text"
autoCorrect="off"
defaultValue={s3.credentials?.secretAccessKey} defaultValue={s3.credentials?.secretAccessKey}
{...register('accessSecret', { required: true })} {...register('accessSecret', { required: true })}
className="input default-ring bg-gray-50" className="input default-ring bg-gray-50"
@ -135,6 +138,7 @@ export const StoragePrefs = () => {
required required
id="region" id="region"
type="text" type="text"
autoCorrect="off"
defaultValue={s3.configuration?.region} defaultValue={s3.configuration?.region}
{...register('region', { required: true })} {...register('region', { required: true })}
className="input default-ring bg-gray-50" className="input default-ring bg-gray-50"
@ -149,6 +153,7 @@ export const StoragePrefs = () => {
required required
id="bucket" id="bucket"
type="text" type="text"
autoCorrect="off"
defaultValue={s3.configuration.currentBucket} defaultValue={s3.configuration.currentBucket}
{...register('bucket', { required: true })} {...register('bucket', { required: true })}
className="input default-ring bg-gray-50" className="input default-ring bg-gray-50"