Telegram-Mini-Apps / issues

Centralised storage of platform issues and enhancement proposals.
5 stars 0 forks source link

When the HTML attributes accept and multiple are used simultaneously, the @change event does not fire in Vue3 project #20

Open ko5S opened 5 months ago

ko5S commented 5 months ago

Platform

Select platforms where this bug is reproducible:

Code example

<template>
  <input type="file" name="files[]" accept="image/*" multiple @change="uploadFile" />
</template>

<script>
function uploadFile() {
  console.log('Upload File')
}
</script>

Describe the bug

When the HTML attributes accept and multiple are used simultaneously in Vue3 project, the change event does not fire on Android.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Choose File'.
  2. Click on 'Choose File'.
  3. Select some image file/files, click OK button.
  4. Nothing happens, change event doesn't fires up, there is no console.log output in console.

Expected behavior

Console.log output 'Upload File' text in console.