widgetti / widgetti/ipyvuetify

v.Menu 'input' event triggers function two times

Open
#208 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
355
Forks
61
PR merge metrics
No merged PRs in 30d

Description

I am trying to call a function when the menu closes which is achievable using the input event of v.Menu but it seems to call the function twice although I have just called my function once using:

myMenu.on_event('input', myFunction)

This seems like a bug but please do tell me if I am doing something wrong or there is a caveat that I don't know of.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the v.Menu input event behavior with the shown myMenu.on_event('input', myFunction) call, then trace the v.Menu event handling. Done means one function invocation per menu close, or a documented caveat explaining why two invocations are expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter, python
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.