Scrolls to bottom when option selected (iframe)

Hi there,

I have the same issue as this but for a select field located within an iframe: when I select an option the window scrolls to the bottom. This happens on iPhone in Safari, Firefox and Chrome. I’m using select2.min.js 4.0.13

I tried to use the dropdownParent configuration property in many ways without success.

  theme: 'bootstrap',
  ...: '...',
  dropdownParent: $('#iframe_id') // and many more #attempts

Could be the iframe embedding the problem?

Could you post some sample code demonstrating the issue on or

Hi John30013, can I sent the sample code or the link to the live form privately?

Sure. Send it to [email protected].