We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2baefd + 2e5536d commit 5138fedCopy full SHA for 5138fed
aztec/src/main/kotlin/org/wordpress/aztec/watchers/ZeroIndexContentWatcher.kt
@@ -27,7 +27,10 @@ class ZeroIndexContentWatcher(aztecText: AztecText) : TextWatcher {
27
28
val aztecText = aztecTextRef.get()
29
// last character was removed
30
- if (aztecText != null && textChangedEventDetails.inputEnd == 0 && textChangedEventDetails.inputStart == 1) {
+ if (aztecText != null
31
+ && text.length == 0
32
+ && textChangedEventDetails.inputEnd == 0
33
+ && textChangedEventDetails.inputStart == 1) {
34
aztecText.disableOnSelectionListener()
35
}
36
0 commit comments