Problem/Motivation
I decided to name it "field_media_multiple", as it's a media field and has multiple values.
For some reason I could not change set "controlsTextPrev" or "controlsTextNext" (and many other fields, which I didn't care about)
The issue is the form-states which assume the field name to be "field_image":
':input[name="fields[field_image][settings_edit_form][settings][controls]"]'
Steps to reproduce
1. Create an entity type with a media/image field named other than "field_image"
2. Try to configure the view of that field
3. Check the "Controls" checkbox
4. See no textfields for prev/next come up.
Proposed resolution
Get the actual field name of the current field via the field definition.
Remaining tasks
Fix in code and create MR.
Issue fork tiny_slider-3479119
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
serkanb commentedComment #5
ipwa commentedComment #8
ipwa commentedhttps://git.drupalcode.org/project/tiny_slider/-/commit/fc339e1c4dba4fea...
Comment #10
ipwa commentedThanks serkanb