Skip to content

Commit

Permalink
Fix issue where the textfield would be cleared when losing focus on i…
Browse files Browse the repository at this point in the history
…OS 10
  • Loading branch information
jimvanzummeren committed Apr 16, 2019
1 parent f8fa02c commit 8f18639
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/TextInput/TextInputField/TextInputField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ open class TextInputField: AttributedTextInputField, TextInput {
// MARK: - Unavailable fields
@available(*, unavailable, message: "use content instead")
open override var text: String? {
set {}
get { return nil }
set { super.text = newValue }
get { return super.text }
}

@available(*, unavailable, message: "use attributedContent instead")
open override var attributedText: NSAttributedString? {
set {}
get { return nil }
set { super.attributedText = newValue }
get { return super.attributedText }
}

@available(*, unavailable, message: "use textInputDelegates and textInputFieldDelegates instead")
open override var delegate: UITextFieldDelegate? {
set {}
Expand Down

0 comments on commit 8f18639

Please sign in to comment.