Patches the problem with <-> clearing the value on return. Correct solution is still unknown.

This commit is contained in:
Krunoslav Zaher 2016-06-10 11:26:10 +02:00
parent 49e9057d28
commit c52090aee2

View File

@ -51,7 +51,7 @@ func <-> (textInput: RxTextInput, variable: Variable<String>) -> Disposable {
let nonMarkedTextValue = nonMarkedText(textInput)
if nonMarkedTextValue != variable.value {
if nonMarkedTextValue != nil && nonMarkedTextValue != variable.value {
variable.value = nonMarkedTextValue ?? ""
}
}, onCompleted: {