Materialize: Waves - update plugin to latest version

Created on 29 Mar 2018  路  6Comments  路  Source: Dogfalo/materialize

Waves effects in Materialize are powered by Waves (http://fian.my.id/Waves). Version included in materialize library is 0.6.4. Can you update it to latest 0.7.6?

All 6 comments

What functionality from the newer version do you need?

It looks like there are many benefits, per the changelog: https://github.com/fians/Waves/releases

  • Add support for co-existing with some other things users may use
  • Remove unused transition propertied
  • Don't do the wave effect while scrolling (this one is a bug I've faced many times in my own applications)
  • Fixes errors on rapid clicking
  • Don't ripple when the disabled property is set
  • Don't use z-index in CSS
  • And, to top it off, fix a memory leak

I wouldn't think any of this would cause issues

@smileytechguy said about benefits. And I think newer version is better in latest Materialize. you should take care of such details.

I would really appreciate this, too.

In my use case I need to triggering the waves effect from code (Waves.ripple() introduced in 0.7.0).

In my application I replaced the css and js code and added in line 30:

document.addEventListener('DOMContentLoaded', function () {
      window.Waves.init();
}, false);

(This was previously in the end of the file)

This worked for me. However I have not tested all components.

@Dogfalo
Could you merge this PR please. thanks.
I need the latest Waves lib to fix my problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SoproniOli713 picture SoproniOli713  路  3Comments

Robouste picture Robouste  路  3Comments

ReiiYuki picture ReiiYuki  路  3Comments

acierpinski picture acierpinski  路  3Comments

serkandurusoy picture serkandurusoy  路  3Comments