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.

react-select v4.3.1 - Unexpected border while typing text

See original GitHub issue

There is an unexpected blue border when I type text. Please check the image. I tried editing control styles by setting border zero or none and even removed boxShadow. But nothing works. Please check the image.

control: (provided) => ({ ...provided, boxShadow: 'none', border: 0, }),

Screenshot 2021-09-24 110030

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

13reactions
SimranDevcommented, Sep 24, 2021

Thanks for the advice. While inspecting I figure out tailwindcss-forms plugin was overriding box-shadow on focus. So I found two solutions to it.

  1. Remove plugin from tailwind.config.js file. Basically remove this line require('@tailwindcss/forms').
  2. If you can’t afford to remove the plugin. Just override it by passing CSS class around your Select component. I added this and it resolved the issue created by tailwindcss. .remove-input-txt-border input[type='text']:focus { box-shadow: none; }
<div className="remove-input-txt-border">
    <Select />
</div>

Thanks again @ebonow

0reactions
donnfelkercommented, Jan 5, 2022

Thank you! I’ve been trying to figure this rogue box out forever now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected blue border while typing text react-select
I found the issue. I was using one tailwind plugin tailwindcss-forms . It overrides the default behavior of some inputs. So there are...
Read more >
Dotted border arround the writing line in input #4929 - GitHub
I get this strange border around the text i write, how do i remove it? ... something is overriding the styling provided by...
Read more >
React-select v2 custom style - CodeSandbox
import ReactDOM from "react-dom";. import Select from "react-select";. import "./styles.css"; ... Removes weird border around container. boxShadow: state.
Read more >
React Select
A flexible and beautiful Select Input control for ReactJS with multiselect, autocomplete and ajax support.
Read more >
Safari Technology Preview Release Notes - Apple Developer
Many of the new Safari 16 features are now available in Safari Technology Preview 147: Live Text. Select and interact with text in...
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