Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Ladda buttons not working without use of JS #19

Open
mm-gmbd opened this issue Jun 30, 2014 · 2 comments
Open

Ladda buttons not working without use of JS #19

mm-gmbd opened this issue Jun 30, 2014 · 2 comments

Comments

@mm-gmbd
Copy link

mm-gmbd commented Jun 30, 2014

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...

@austenc
Copy link

austenc commented Jul 14, 2014

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

@terales
Copy link
Contributor

terales commented Dec 13, 2017

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants