Giter Club home page Giter Club logo

Comments (7)

ianmcburnie avatar ianmcburnie commented on September 26, 2024

Thanks @yomed. Will take a look.

from makeup-expander.

ianmcburnie avatar ianmcburnie commented on September 26, 2024

The bug lies in the makeup-exit-emitter dependency. Clicking menu trigger in step 3 should not emit a focusExit event like it currently does, which in turn causes expander to collapse. Will fix.

from makeup-expander.

ianmcburnie avatar ianmcburnie commented on September 26, 2024

@yomed, can you try upgrading to v0.1.0? Note that autoCollapse has now been set to false by default, and that events were renamed to expanderExpand and expanderCollapse (we will rename these again, when we get consensus).

from makeup-expander.

yomed avatar yomed commented on September 26, 2024

Thanks @ianmcburnie, that fixed the main issue. Changing the event names actually caused another issue (that's somewhat related).

I'm using the events like this, in order to easily catch them with Marko:

<span w-bind w-on-expanderExpand="handleExpand" w-on-expanderCollapse="handleCollapse">

The camelCase custom events should work fine, per marko-js-archive/marko-widgets#19

I believe there is a bug in marko-widgets, because it is incorrectly transforming the events to expanderexpand and expandercollapse. I would open an issue there... but marko-widgets doesn't really have active development anymore. We might want to consider this issue when deciding the final names.

from makeup-expander.

yomed avatar yomed commented on September 26, 2024

@ianmcburnie Should the new event names be expander-expand and expander-collapse?

from makeup-expander.

ianmcburnie avatar ianmcburnie commented on September 26, 2024

Yep. I was holding back on renaming all the makeup events, because well... it's a bit of a manual chore, but if the camel case is causing an actual issue with Marko I guess I should stop being lazy and rename them... starting with this one :-)

from makeup-expander.

ianmcburnie avatar ianmcburnie commented on September 26, 2024

v0.2.0 published with new event names.

from makeup-expander.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.