mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-05 22:47:15 +03:00
Patches the problem with <-> clearing the value on return. Correct solution is still unknown.
This commit is contained in:
parent
49e9057d28
commit
c52090aee2
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user