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

refactor: rename callbacks in css input container #5014

Merged
merged 1 commit into from
Mar 18, 2025
Merged

Conversation

TrySound
Copy link
Member

Css input container is simplified version of css value input. setValue and deleteProperty callbacks do not follow callback style and have inconsistent implementation. deleteProperty requires property to be specified.

Here renamed setValue to onUpdate, deleteProperty to onDelete and removed property parameter.

onUpdate: (style: StyleValue, options?: StyleUpdateOptions) => void;
onDelete: (options?: StyleUpdateOptions) => void;

Css input container is simplified version of css value input.
setValue and deleteProperty callbacks do not follow callback style
and have inconsistent implementation. deleteProperty requires property
to be specified.

Here renamed setValue to onUpdate, deleteProperty to onDelete and
removed property parameter.

```
onUpdate: (style: StyleValue, options?: StyleUpdateOptions) => void;
onDelete: (options?: StyleUpdateOptions) => void;
```
@TrySound TrySound merged commit 8d05217 into main Mar 18, 2025
17 checks passed
@TrySound TrySound deleted the input-callbacks branch March 18, 2025 11:18
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