• Resolved codibit

    (@codibit)


    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’));

    • This topic was modified 2 years, 10 months ago by codibit.
Viewing 1 replies (of 1 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @codibit

    I hope you’re well today and thank you for reporting this.

    There’s a bug in the plugin that causes it and our Formainator Team is already aware of it. Our developers are looking into it and it should be fixed with one of upcoming releases, though I don’t have ETA at this moment.

    I’ve passed your patch suggestion to them too, thank you for sharing it.

    Best regards,
    Adam

Viewing 1 replies (of 1 total)
  • The topic ‘First select2 field gets second select2 placeholder in search’ is closed to new replies.