Comments (7)
Thanks @yomed. Will take a look.
from makeup-expander.
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.
@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.
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.
@ianmcburnie Should the new event names be expander-expand
and expander-collapse
?
from makeup-expander.
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.
v0.2.0 published with new event names.
from makeup-expander.
Related Issues (7)
- Create a "destroy" or "clean up" method for event listeners HOT 2
- Replace `expand()`, `collapse()` and `isExpanded()` with getter/setter pattern
- expander default state HOT 2
- .babelrc could get picked up by bundlers HOT 1
- Uncaught TypeError: exitEmitter.add is not a function HOT 1
- Add `hostContainerClass` and `simulateSpacebarClick` options to readme HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from makeup-expander.