Skip to content

Commit

Permalink
fix flex align on older browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Nov 23, 2023
1 parent c527d8d commit 20630f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -2381,6 +2381,8 @@ class Tags {
// Use logical styles for RTL support
span.style.marginBlock = vertMargin + "px";
span.style.marginInline = "0px 6px";
// Required for some older browsers that don't inherit properly of holder flex styles
span.style.display = "flex";
span.classList.add(...classes);
span.setAttribute(VALUE_ATTRIBUTE, value);
// Tooltips
Expand Down

0 comments on commit 20630f5

Please sign in to comment.