Feature: Add "setUndefinedWhenEmpty" option to the onchange plugin
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 23.9k
- Forks
- 2.2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 55
Description
Right now, I have to manually check if the value is empty, which can be quite annoying. It would be nice if the onchange plugin had the checking built in and would just return undefined when empty.
The [isRootTextContentEmpty](https://lexical.dev/docs/api/modules/lexical_text#isroottextcontentempty) could probably be used for this
Contributor guide
Assessment
This issue has not been assessed yet.