Skip to content
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

Remove wrong event handlers #4136

Merged
merged 8 commits into from
Oct 9, 2024
Merged

Remove wrong event handlers #4136

merged 8 commits into from
Oct 9, 2024

Conversation

adhami3310
Copy link
Member

also deprecate default annotations for strings (which means there will be good amount of fixes to event handlers in the library soon)

masenf
masenf previously approved these changes Oct 9, 2024
Copy link
Collaborator

@masenf masenf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably followup work, but the drawer content component accepts on_pointer_down_outside and on_open_auto_focus events.

Looks like the root also exposes on_close.

The docs for vaul are a bit out of date with the code; we probably should go through and clean these up.

on_change: EventHandler[lambda e0: [e0.target.value]]
on_change: EventHandler[input_event]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this class inherits from elements.Textarea, do we need these definitions here? are they for autodoc purposes?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Soon TextField will inherit from elements.Input, so similar question there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed unnecessary ones! should work fine as PYI file remained the same

@adhami3310
Copy link
Member Author

the drawer content component accepts on_pointer_down_outside and on_open_auto_focus events

it technically does, but also it's not documented in vaul, so we kinda agreed to leave it out

@adhami3310 adhami3310 requested a review from masenf October 9, 2024 01:27
@adhami3310 adhami3310 merged commit 91ab8ac into main Oct 9, 2024
39 checks passed
Kastier1 pushed a commit that referenced this pull request Oct 23, 2024
* remove wrong target value

* add keyboard event

* simplify empty ones

* remove events from text_area

* empty tuples are empty bruh

* dangit darglint
@masenf masenf deleted the remove-wrong-event-handlers branch December 12, 2024 07:04
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.

2 participants