Menu icon Foundation

My Posts

No Content

My Comments

Matteo Bianchini commented on Robert Rhu's post over 2 years

This fixes the issue if you are using foundation inside React framework.Credits to: Andrew Mead for the answerThis is a JavaScript component, so you'll need to initialize it before it will work.
You'll need to reinitialize Foundation if you're rendering a Foundation component to the screen after the initial call to $(document).foundation(); . You might be able to get away with an additional call to $(document).foundation(); from inside the component componentDidMount lifecycle method. Otherwise the JavaScript reference at the bottom of that page should work: http://foundation.zurb.com/sites/docs/dropdown-menu.html#javascript-reference

Matteo Bianchini commented on Matteo Bianchini's post over 2 years

This fixes the issue if you are using foundation inside React framework.Credits to: Andrew Mead for the answerThis is a JavaScript component, so you'll need to initialize it before it will work.
You'll need to reinitialize Foundation if you're rendering a Foundation component to the screen after the initial call to $(document).foundation(); . You might be able to get away with an additional call to $(document).foundation(); from inside the component componentDidMount lifecycle method. Otherwise the JavaScript reference at the bottom of that page should work: http://foundation.zurb.com/sites/docs/dropdown-menu.html#javascript-reference

Matteo Bianchini commented on Robert Rhu's post almost 3 years

Posts Followed



Following

    No Content

Followers

My Posts

No Content

My Comments

You commented on Robert Rhu's post over 2 years

This fixes the issue if you are using foundation inside React framework.Credits to: Andrew Mead for the answerThis is a JavaScript component, so you'll need to initialize it before it will work.
You'll need to reinitialize Foundation if you're rendering a Foundation component to the screen after the initial call to $(document).foundation(); . You might be able to get away with an additional call to $(document).foundation(); from inside the component componentDidMount lifecycle method. Otherwise the JavaScript reference at the bottom of that page should work: http://foundation.zurb.com/sites/docs/dropdown-menu.html#javascript-reference

You commented on Matteo Bianchini's post over 2 years

This fixes the issue if you are using foundation inside React framework.Credits to: Andrew Mead for the answerThis is a JavaScript component, so you'll need to initialize it before it will work.
You'll need to reinitialize Foundation if you're rendering a Foundation component to the screen after the initial call to $(document).foundation(); . You might be able to get away with an additional call to $(document).foundation(); from inside the component componentDidMount lifecycle method. Otherwise the JavaScript reference at the bottom of that page should work: http://foundation.zurb.com/sites/docs/dropdown-menu.html#javascript-reference

You commented on Robert Rhu's post almost 3 years

Posts Followed

Following

  • No Content

Followers

  • No Content