简体   繁体   中英

Remove border from Select2 (JS) after change event

I use Select2 as my drop-down list. After changing a value I get a border for some milliseconds. Maybe somebody had this problem earlier?

Select2 after changing

在此处输入图片说明

You can add the below CSS to remove it.

outline: none;

Actually, it's not a border, it's an outline which is shown by input-type elements (like button, select, etc) when someone changes the value.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM