Skip to content

feat: add isMenuOpen prop to programatically control menu state #182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 30, 2025

Conversation

TotomInc
Copy link
Owner

@TotomInc TotomInc commented Jan 30, 2025

Fixes #161

Add an option to programmatically control the menu open state.

  • Add a new prop isMenuOpen to src/Select.vue to control the menu open state.
  • Update the openMenu and closeMenu methods to use the isMenuOpen prop.
  • Add a watcher to sync the menuOpen state with the isMenuOpen prop.
  • Update the documentation in docs/props.md to include the new isMenuOpen prop.
  • Add tests in src/Select.spec.ts to verify the functionality of the isMenuOpen prop.

For more details, open the Copilot Workspace session.

Copy link

vercel bot commented Jan 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vue3-select-component ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 3:23pm

Fixes #161

Add an option to programmatically control the menu open state.

* Add a new prop `isMenuOpen` to `src/Select.vue` to control the menu open state.
* Update the `openMenu` and `closeMenu` methods to use the `isMenuOpen` prop.
* Add a watcher to sync the `menuOpen` state with the `isMenuOpen` prop.
* Update the documentation in `docs/props.md` to include the new `isMenuOpen` prop.
* Add tests in `src/Select.spec.ts` to verify the functionality of the `isMenuOpen` prop.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/TotomInc/vue3-select-component/issues/161?shareId=XXXX-XXXX-XXXX-XXXX).
@TotomInc TotomInc merged commit 21f29a3 into master Jan 30, 2025
3 checks passed
@TotomInc TotomInc deleted the feat/is-menu-open-prop branch January 30, 2025 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to open and close the menu
1 participant