question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chrome adding blue border around TextInput

See original GitHub issue

Environment

“react-native-paper”: “^3.9.0”, “react-native-web”: “~0.11.7”, Expo

Description

I am using InputText as


<TextInput
					style={{outlineColor: 'rgba(0,0,0,0)', outlineOffset: 0, outlineStyle: 'none', 
							outlineWidth: 0, backgroundColor: 'white'}}
					theme={this.textValidationTheme(styles)}
					mode="flat"
					ref={o => (this.txtInput = o)}
					label={this.props.label}
					//placeholder={this.state.isFocused ? "" : this.props.label}
					value={this.state.text}
					onFocus={this.onFocus}
					onChangeText={this.onChangeText}
					onBlur={this.onBlur}
					onSubmitEditing={this.onSubmit}
					underlineColor={color.lightGray}
					{...this.props.textInputProps}
				/>

It seems that chrome is adding a default blue outline and no modification in outline settings seem to be working…

Screenshot 2020-05-15 at 5 24 06 AM

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
jcarrawaycommented, Jun 12, 2020

outlineWidth: 0, worked for me

9reactions
timsonatercommented, May 27, 2020

with react native web you can do:

<TextInput
   style={{outline: "none"}}
/>
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove the border highlight on an input text element
In Bootstrap 4 to remove border outline you can use shadow-none , it will remove focus outline.
Read more >
How to Remove Outline around Text Input ... - Tutorial Republic
In Google Chrome browser form controls like <input> , <textarea> and <select> highlighted with blue outline around them on focus.
Read more >
How to Remove and Style the Border Around Text Input Boxes ...
Remove the outline and add a border style using the :focus and :active pseudo-classes with the <input> field. Also, you can remove the...
Read more >
How to remove outline around text input ... - GeeksforGeeks
Generally in the case of Google Chrome Browser, when the input field gets focus then the blue outline occurred on the border of...
Read more >
Removing 'blue border' from input text field - MachForm
yuniar. Chrome and Safari put a glowing blue border around text area when they are in focus. You can remove it by adding...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found