use select2 in boostrap modal like this: $('.my-select2').each(function () { $(this).select2({ dropdownParent: $(this).parent(),// fix select2 search input focus bug }) }) // fix select2 bootstrap modal scroll bug $(document).on('select2:close', '.my-select2', function ...
$watchers.on(scrollEvent, function (ev) { var position = Utils.GetData(this, 'select2-scroll-position'); $(this).scrollTop(position.y); }); after fixed $watchers.on(scrollEvent, function (ev) { var position = $(this).data('select2-scroll-position'); if($(this).find('.select2-...
Modal::begin([ 'options' => [ 'id' => 'kartik-modal', 'tabindex' => false // important for Select2 to work properly ], 'title' => 'Select2 Inside Modal', 'toggleButton' => ['label' => 'Show Modal', 'class' => 'btn btn-lg btn-primary'], ]); echo Select2::widget([ ...
Infinite Scroll Inside a Modal Body? Initialize a SelectList Inject Constructor Dependency in Action Filter Inline CSS and Styles with Html Helpers in MVC3 Razor Inline Editing not working in Kendo Window Input Mask For MVC razor web pages using editfor box. Is it possible? Input or Button...
IE HTML problem - Div horizontal scroll bar overlapping it's own content IE will not load javascript file IEnumerable in JavaScript function. If child window already opened, close child window and re-open it, else open child window If FileExists in JavaScript if I need to use jquery and ...
I was playing with different settings, such as making the dropmenu position:fixed but the problem with this is that the element's calculated offset is the TRUE offset + the amount of scrolling the page has done, making the dropmenu appear correctly when you are scrolled to the top and ...
In my case the problem is triggered only when I have the Select2 inside a Modal (Bootstrap Modals) AND the main page was scrolled (not at top) at the moment of opening the modal, so the longer the scroll, the longer the gap between controller and dropdown. I fixed it by doing thi...
How to add scrollbar into chart component? How to add shadow effect to Label in Win Forms Application? How to add value (e.g. price) to combobox text (e.g. product) in vb. How to add WHERE Clause to Table Adapter @ Run Time how to adding map by using vb.net How to Alter Tab...
Infinite Scroll Inside a Modal Body? Initialize a SelectList Inject Constructor Dependency in Action Filter Inline CSS and Styles with Html Helpers in MVC3 Razor Inline Editing not working in Kendo Window Input Mask For MVC razor web pages using editfor box. Is it possible? Input or Button wi...
It fails with users that use the scrollbars, so it seems to be worse for data grid users if we changed the default trigger. I also think that the use case is standard. A Select inside a ClickAwayLister is all that is needed: https://codesandbox.io/s/clickaway-material-demo-forked-p9...