All notable changes to this project will be documented here.
Released 2020-08-03
- Breaking Change: Remove named export from entry point (#60).
- Change submenu chevron character code in style sheet.
Released 2020-05-28
- Prop
useScrollHeight
to use element scroll height instead of offset height (#55). - Prop
useScrollWidth
to use element scroll width instead of offset width (#55). - Props
heightOffset
andwidthOffset
to specify distance from edge of screen (#55).
Released 2020-03-19
- Add prop
subMenuOffset
for users to specify a custom offset (#50).
- Update dev dependencies.
Released 2019-11-14
- Update entry point to source (#33).
- No longer build component with webpack (#33).
- Component source is available through npm now, including the sass files.
- Even though there shouldn't be any breaking changes in this release, it's a major release because breaking changes were introduced in version 4.1.0, which should have been a major release instead.
Released 2019-10-20
- Fix bug of "Unknown custom element" (#40).
Released 2019-10-11
- Move menu styles from js to its own stylesheet (#36)
- Remove core-js as a dependency in favor of local polyfills for a smaller build size (#33)
Released 2019-07-28
- Make
localItemSelector
reactive to changes fromitemSelector
prop (#30).
- Update dev dependencies
Released 2019-06-22
Released 2019-06-03
- Always emit the close event on click. See issue #23
Released 2019-05-18
- Added support for keyboard navigation (up and down arrows).
- Added ability to close menu on esc.
- Added
lazy
prop as an alternative tov-show
. - Added
tag
prop to specify menu tag (defaults to<ul>
).
- Default menu tag is now
<ul>
and menu is now the top-level element. - Changed how the menu is styled.
- Updated build process and project structure.
- Ran
npm audit fix
to fix vulnerabilities found from dependencies.
Released 2019-04-05
- Only add scroll event listener on
closeOnScroll
prop value change if the menu is open.
Released 2019-04-03
- Scroll Listener: Only attach the close scroll event listener when opened and immediately remove it when menu is closed to prevent it being called unnecessarily.
- Dependencies: Removed Vue as a dependency as it never really was one since v3.0.0.
- Dependencies: Ran
npm audit fix
to fix vulnerabilities found from dependencies.
Released 2018-11-19
- Close event: only emit the event if menu is actually open (fixes #13)
Released 2018-10-23
- Updated vue and other dev dependencies.
Released 2018-10-15
- Events: both open and close events are now emitted by the component. (#10)
Released 2018-09-12
- Close on click prop: added a prop to prevent closing the context menu on click. (#8)
Released 2018-06-23
- Updated README.md
- Added code comments
Released 2018-05-29
- Scroll prop: added a prop to close the context menu automatically on window scroll. (#2)
Released 2018-05-29
- Updated documentation
- Added demos for the component.
Released 2018-05-26
- Changed slot scope definition from
userData
to justdata
. - Component gets imported as
{ VueContext }
instead ofVContext
now.
- Updated dependencies
- Updated documentation
- Changed code structure and build process.
Released 2017-08-18
- License file
- Changelog file
- Removed bottom border from context menu line items.
Released 2017-08-17
- Initial release