You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been used semantic ui and some examples doesn't work as the expected.
To have the expected behavior, I had to download the semantic.css and semantic.js directly from the source code of documentation page, instead of the .zip content.
Thanks for the great job!
Keep coding!
Cheers,
Zekitow
The text was updated successfully, but these errors were encountered:
I get the feeling that you may have misunderstood how to use Sematic UI's JS. With Semantic, behaviors are not automatically applied to elements. Instead, you must tell Semantic where to apply behaviors. The benefit of this is you can use different identifiers and apply different settings.
Example:
Lets say that I want to have 3 types of dropdowns on my site, some that open when clicked, some that open when hovered over, and a few that should not be used by Semantic.
I would achieve this with the following JS:
$('.ui.menu').dropdown();
$('.ui.hover.menu').dropdown({ on: 'hover' });
$('.other.menu').doSomething();
The reason why some of you behaviors worked when you used semantic.js is because that file contains both the Semantic UI js library, and code specific to the site. (including the code that applies behaviors to elements on that site)
But I had a problem with "downloadable" version using modals, on ElementaryOS Chrome.
For example, I had a button and when I click it, the modal opens normally. But at the second time, the modal does not open centralized anymore (it works only when I force a resize, manually, that triggers the modal position again).
Please, create a JSFiddle (fork the link in the readme) that shows the unexpected behavior. And please list the exact version of Chrome on ElementaryOS.
Hi,
I've been used semantic ui and some examples doesn't work as the expected.
To have the expected behavior, I had to download the semantic.css and semantic.js directly from the source code of documentation page, instead of the .zip content.
Thanks for the great job!
Keep coding!
Cheers,
Zekitow
The text was updated successfully, but these errors were encountered: