First select2 field gets second select2 placeholder in search
-
When creating a form with 2 dropdowns, a ‘country’ select and a ‘custom’ dropdown field, I am getting the second’s placeholder in the country select2 search box.
In my case, I had a ‘Select country’ field (from the address field) and an ‘Select Age’ field (a select field).
In the frontend, when I click over Select country, I get the proper country list, but in the search filter input, the “Age” placeholder appears.
I am unsure on how to submit a patch, but I got it fixed by changing the following in /assets/forminator-ui/js/forminator-form.js:
(LINE 436 OLD) $select.data(‘select2’).$dropdown.find(‘:input.select2-search__field’).attr(‘placeholder’, $placeholder);
(LINE 436 NEW) $select.data(‘select2’).$dropdown.find(‘:input.select2-search__field’).attr(‘placeholder’, $(this).data(‘placeholder’));
- The topic ‘First select2 field gets second select2 placeholder in search’ is closed to new replies.