Automatically submit selection skips field validation in View widget

Created on 8 September 2020, almost 4 years ago
Updated 17 May 2024, about 1 month ago

Problem/Motivation

No validation triggered for the selected file in view entity browser widget when 'Automatically submit selection' is enabled.

Steps to reproduce

1. Create entity browser, set up view widget plugin in the widget settings, enable 'Automatically submit selection'.

2. Create new field without validations and add some exiting items via entity browser widget.

3. Create new field with validation like min resolution or allowed types, set up entity browser widget for the field, create new content with your field, select exiting item which is not valid (too small image or another image type).

4. It's possible to select and use image which is not valid for the field validation rules.

Proposed resolution

Fix js behaviour, so form state value entity_browser_select is filled correctly and ::prepareEntities() returns selected items.

๐Ÿ› Bug report
Status

Needs work

Version

2.0

Component

Widget plugins

Created by

๐Ÿ‡บ๐Ÿ‡ฆUkraine nginex

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024