Releases: scssyworks/context-builder
Releases · scssyworks/context-builder
v0.5.1
Type fixes
v0.5.0
- OnClick handler can now return a Promise
- Build optimization
v0.4.2
Context menu UI is now inserted in body element by default to avoid style conflicts.
v0.4.1
Window object is now referred from document.defaultView
v0.4.0
- Added ability to bind events using
<ContextMenu>.on
method rather than passing it as configuration. - Added
remove
method toContextList
andContextItem
classes. Now you can also remove the context menu children dynamically. - Major bugfixes
v0.3.0
- Added support for
onBeforeCleanup
handler - Cleanup method now returns a
Promise<void>
- Updated dependencies to their latest versions
v0.2.4
- On cleanup call, active context menu is now removed from DOM
- Library now supports
onContextMenu
handler to capture the target where context menu was activated.
v0.2.2
- Added data attributes to targets for better element separation
v0.2.1
- This version addresses and fixes more issues related to context menu not closing when clicked outside target area.
v0.2.0
- Create multiple context menu instances for different sections of UI
- Fixed an issue with context menu not re-opening under certain circumstances
- Context menu is dismissed on body click (always). Previously the target element was considered. This behaviour will be further improved in next version.