I know that it is already late, but I have seen that similar questions have remained unanswered recently, and this question is at the top of the Google search for this problem. This can be done using only CSS. If you want to add a visual effect, try adjusting the scroll bar.
For direction X:
This can get a little ugly if you decide to set a minimum width or width in your tags.
The only way I found this in the X direction is to use flexbox:
tags-input .tags .tag-list {
display: flex;
flex-direction: row;
overflow-x: auto;
}
tags-input .tags .tag-item {
display: inline-table;
min-width: 150px;
}
This Github issue is also directly related to the issue.
For direction Y:
Applying a fixed height to the class .tagsand setting the scroll overflow-ywill produce the desired result:
.tags {
height: 34px;
overflow-y: scroll;
}
source
share