Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ public open class ReactTextInputManager public constructor() :
// the flags work out, the underlying field will end up a URI-type field.
flagsToSet = InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD
} else if (KEYBOARD_TYPE_URI.equals(keyboardType, ignoreCase = true)) {
flagsToSet = InputType.TYPE_TEXT_VARIATION_URI
flagsToSet = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_URI
}

updateStagedInputTypeFlag(view, InputType.TYPE_MASK_CLASS, flagsToSet)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ class ReactTextInputPropertyTest {
fun testKeyboardTypeUrl() {
manager.updateProperties(view, buildStyles("keyboardType", "url"))
assertThat(view.inputType and generalKeyboardTypeFlags)
.isEqualTo(InputType.TYPE_TEXT_VARIATION_URI)
.isEqualTo(InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_URI)
}

@Test
Expand Down
Loading