github chakra-ui/zag @zag-js/file-upload@2.0.0-next.4

Major Changes

  • #3342
    d6089c3 Thanks
    @github-actions! - - Keep focus on a nearby file or the trigger when files
    are removed or cleared.

    • Announce added and removed files to screen readers, with the filesAdded and fileDeleted translations.

    • Fix the file upload staying in its dragging state when it becomes disabled or read-only during a drag, which kept
      the trigger from opening the file picker.

    • Breaking: Submit the files of a read-only file upload. Only a disabled one is left out of the form, like a
      native input.

Patch Changes

  • #3342
    730ea29 Thanks
    @github-actions! - - Fix focus, scroll and sync work scheduled for the next
    frame running after the component unmounts.
  • Updated dependencies [a80b307]:
    • @zag-js/dom-query@2.0.0-next.4
    • @zag-js/core@2.0.0-next.4
    • @zag-js/i18n-utils@2.0.0-next.4
    • @zag-js/file-utils@2.0.0-next.4
    • @zag-js/anatomy@2.0.0-next.4
    • @zag-js/types@2.0.0-next.4
    • @zag-js/utils@2.0.0-next.4
    • @zag-js/live-region@2.0.0-next.4

Don't miss a new zag release

NewReleases is sending notifications on new releases.