Skip to content

Commit 1446228

Browse files
committed
chore: add bootstrap tags npm package #24
1 parent 2f42d3f commit 1446228

File tree

3 files changed

+494
-0
lines changed

3 files changed

+494
-0
lines changed

app/views/topics/_form.html.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<script type="module">
2+
import Tags from "bootstrap5-tags";
3+
4+
Tags.init("select#topic_tag_list");
5+
</script>
16

27
<%= form_for topic do |f| %>
38
<div class="form-body">

config/importmap.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
77
pin_all_from "app/javascript/controllers", under: "controllers"
88
pin "stimulus-use" # @0.52.3
9+
pin "bootstrap5-tags" # @1.7.7

0 commit comments

Comments
 (0)