simpleclub / math_keyboard

Math expression editing using an on-screen software keyboard or physical keyboard input in a typeset input field in Flutter.
https://simpleclub.github.io/math_keyboard
BSD 3-Clause "New" or "Revised" License
134 stars 50 forks source link

Return empty string when field is empty instead of \Box #44

Closed edhom closed 1 year ago

edhom commented 1 year ago

Description

When the field is empty, currentEditingValue returns a TeX \Box as a placeholder. This was also passed to onChanged and onSubmitted, which is not expected by users. This PR adds a parameter placeholderWhenEmpty to fix the behavior.

Related issues & PRs

n/a

Checklist