ladda-bootstrap icon indicating copy to clipboard operation
ladda-bootstrap copied to clipboard

Ladda buttons not working without use of JS

Open mm-gmbd opened this issue 11 years ago • 2 comments

Based on the examples, it lookes like the Ladda effect can be achieved simply by including the correct CSS and JS files and then defining a Ladda button in HTML. However, regardless of what I do the Ladda effects never happen unless I programatically perform a Ladda.bind().

Is this the required usage of Ladda or do I have something else going on? I notice on the demo page there is a JS script tag that contains the following:

// Bind normal buttons Ladda.bind( 'div:not(.progress-demo) button', { timeout: 2000 } );

This makes me think that even the normal buttons must have a Ladda.bind(). If this is the required functionality for getting the Ladda effect, then it could be made much more obvious on the demo and github pages...

mm-gmbd avatar Jun 30 '14 14:06 mm-gmbd

Experiencing the same issue with ladda-bootstrap installed via bower. Comment line 172 in index.html to experience the same behavior on the demos.

austenc avatar Jul 14 '14 17:07 austenc

Issue reproduced in https://jsfiddle.net/terales/jzfjxj8g/

I think that behavior should be like in Ladda — work without any additional JS for elements with ladda-button class.

@msurguy Can I prepare a PR to fix this issue?

terales avatar Dec 13 '17 23:12 terales