Just remove the class dropdown-toggle
and it works. If for any reason you can't remove it, just do it with the css you wrote, changing
.message-notification-chat-icon-mobile .dropdown-toggle::after {
to
.message-notification-chat-icon-mobile.dropdown-toggle::after {
See both approaches in the following code:
.message-notification-chat-icon-mobile.dropdown-toggle::after {
display: none;
}
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1"
crossorigin="anonymous"
>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"
crossorigin="anonymous"
></script>
<button
class="btn ml-auto message-notification-chat-icon-mobile"
type="button"
id="dropdownTopMenuMessageNotification"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
id="messageNotificationIcon"
>
Dropdown 1 <i class="fas fa-comment"></i>
</button>
<button
class="btn dropdown-toggle ml-auto message-notification-chat-icon-mobile"
type="button"
id="dropdownTopMenuMessageNotification"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
id="messageNotificationIcon"
>
Dropdown 2 <i class="fas fa-comment"></i>
</button>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…