Yellowen/admin_lte-rails

Sidebar not open after click

rderoldan1 opened this issue · 10 comments

When I have a sidebar with sub menu, After click in one option, I can't expand the menu again, I have to reload the page.

screen shot 2015-11-25 at 1 36 13 a m
screen shot 2015-11-25 at 1 35 52 a m

Sorry I didn't understand you well, Do you have nested menu entries with more than two level ?

I have a nested submenu, when the page load I can open it without problem,
but when I click one option and the page reload, I can't open again the sub
menu, I guess is related to turbolinks

On Wednesday, November 25, 2015, Sameer Rahmani notifications@github.com
wrote:

Sorry I didn't understand you well, Do you have nested menu entries with
more than two level ?


Reply to this email directly or view it on GitHub
#5 (comment)
.

Hmmm I'm using it with turbolinks as well, Can you please take a look at javascript console for a possible warning or error. And it would be possible if you can send me a little gif or video that help me understand the problem better.

Thanks for your time 😄

Here is a gif, as you can see, after clic on option, submenus never expand until full reload. I reviewed browser console and nothing is there.

Image of Yaktocat

Thanks for the gif. If your using turbolinks make sure to exclude sidebar from replacing by turbolinks.

@lxsameer Thanks :D I just add data-no-turbolink to the div. ;)

The last workaround with data-no-turbolink, works if I click a button in the sidebar, but if I click other button in the page, it happens again, should I to disable turbo links at all, or do you have any suggestion?

use data-turbolinks-permanent to aside tag

YEEES 👍 , you save my day

Thanks ;)