jScrollPane icon indicating copy to clipboard operation
jScrollPane copied to clipboard

jScrollpane not working with bootstrap selectpicker refresh method

Open JhalakM opened this issue 8 years ago • 6 comments

Hello,

@vitch

I have tried to integrate jScrollpane custom scroll bar with bootstrap select picker dropdown. When we remove any option element

from dropdown and refresh it using selectpicker refresh method/ jScrollpane scrollbar stopped working. Please have a look on attached demo link to get more idea. Let me know the solution.

Demo URL : http://dropdown-test.iprojectlab.com/

Thanks.

JhalakM avatar Apr 07 '16 07:04 JhalakM

I think the problem is because you are applying jScrollPane to a <ul>. You should wrap this in a <div> and apply jScrollPane there...

vitch avatar Apr 07 '16 15:04 vitch

That was also won't work. Its not even taking scroll in first time If I will apply to <div>. Apart, I have to apply it in <ul> tag and in first time its working proper. but not in second time when I will refresh my element option using selectpicker.

JhalakM avatar Apr 07 '16 15:04 JhalakM

If you can put the demo onto jsfiddle.net then I can try to help

vitch avatar Apr 07 '16 15:04 vitch

I am not able to update it in JSFiddle but I have updated code in github. If you can check using this. https://github.com/JhalakM/dropdown-demo.git Please do the needfull.

Thanks.

JhalakM avatar Apr 07 '16 16:04 JhalakM

Hi, @vitch

As requested I have updated code in jsFiddle.net. Please check below URL for demo.

URL : https://jsfiddle.net/ztqq0mzs/8/

Thanks,

JhalakM avatar Apr 08 '16 07:04 JhalakM

Is this still issue?

illuusio avatar Jan 12 '18 10:01 illuusio