strapi icon indicating copy to clipboard operation
strapi copied to clipboard

Create an entry works on Laptop but not on iOS device

Open KevinDeAzevedo opened this issue 3 years ago • 0 comments

Version

@nuxtjs/strapi: 1.5.0 nuxt: v3.0.0-rc.6

Reproduction

<script setup lang="ts">
import type { form } from '~/types'
import type { Strapi4Response } from '@nuxtjs/strapi'

/* Data form */

var firstName = ref('')
var lastName = ref('')
var mailAddress = ref('')
var comments = ref('')
let sendingMessage = ref('')
let sended = ref(false)


const { create } = useStrapi4()
const onSubmit = async () => {
 await create<Strapi4Response<form>>('forms', { mailAddress: mailAddress.value, firstName: firstName.value, lastName: lastName.value, comments: comments.value })
firstName.value = ''
lastName.value = ''
mailAddress.value = ''
comments.value = ''
sendingMessage.value = 'Message envoyé !'
sended.value = true
}


</script>

<template>
 <div>
  <form @submit.prevent="onSubmit" class='form'>
   <BaseInput v-model="firstName" label="Votre prénom" type="text" />
   <BaseInput v-model="lastName" label="Votre nom" type="text" />
   <BaseInput v-model="mailAddress" label="Votre adresse e-mail" type="email" autocomplete="on" required/>
   <BaseTextArea v-model="comments" label="Votre message" />
   <div v-if='sended'><p>{{ sendingMessage }}</p></div>
   <div v-else>
    <button class="submitButton" type="submit" value="Send">💌 Envoyer</button>
   </div>
  </form>
  <p>{{ sended }}</p>
 </div>
</template>

Steps to reproduce

Complete the field and send the form.

What is Expected?

See in the 'Form' Collection type, the new entries. (I made a lifecycle config with SendGrid and it's working good)

What is actually happening?

Do the same thing in my Laptop : OK In iOS device : nothing is happening in the front-end , no new entries in the Collection type 'Form'

Thank you :)

KevinDeAzevedo avatar Aug 09 '22 10:08 KevinDeAzevedo