Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: Updating a style property during rerender (borderColor) when a conflicting property is set (border) can lead to styling bugs

Tags:

reactjs

I am getting the following error

Warning: Updating a style property during rerender (borderColor) when a conflicting property is set (border) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values. in div (created by Dropdown) in div (created by Dropdown) in Dropdown (created by MultiSelect) in div (created by MultiSelect)

https://github.com/Khan/react-multi-select

How can I avoid this error?

like image 804
Fast Source Avatar asked Sep 03 '25 07:09

Fast Source


1 Answers

It's just telling you to replace the border style property with the complete set of property to style borders, that is borderWidth, borderStyle, borderColor

like image 173
Nja Avatar answered Sep 05 '25 00:09

Nja



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!