Skip to content

feat(file-picker): should use cancel event instead of window.focus #752

Description

@timo-haas

Plugin(s)

  • Accelerometer
  • Age Signals
  • Android Battery Optimization
  • Android Dark Mode Support
  • Android Edge-to-Edge Support
  • Android Foreground Service
  • App Review
  • App Shortcuts
  • App Update
  • Asset Manager
  • Audio Player
  • Audio Recorder
  • Background Task
  • Badge
  • Barometer
  • Biometrics
  • Bluetooth Low Energy
  • Cloudinary
  • Contacts
  • Datetime Picker
  • File Compressor
  • File Opener
  • File Picker
  • Geocoder
  • libSQL
  • Live Update
  • Managed Configurations
  • Media Session
  • NFC
  • Pedometer
  • Photo Editor
  • Posthog
  • Purchases
  • Printer
  • RealtimeKit
  • Secure Preferences
  • Screen Orientation
  • Screenshot
  • Speech Recognition
  • Speech Synthesis
  • Share Target
  • Square Mobile Payments
  • SQLite
  • Superwall
  • Torch
  • Zip

Current problem

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Cancel events are delayed by 500ms.

Preferred solution

Modern browsers support cancel event on input without a delay.

Looking at the browser support for the file input cancel event:
https://caniuse.com/mdn-api_htmlinputelement_cancel_event
(Caniuse)

Alternative options

No response

Additional context

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions