2021-04-07 20:45:27 +00:00
|
|
|
import InputTag from 'input-tag/input-tag'
|
|
|
|
import InputMap from 'input-map/input-map'
|
|
|
|
|
2020-11-20 00:23:23 +00:00
|
|
|
document.addEventListener('turbolinks:load', () => {
|
|
|
|
document.querySelectorAll('.taggable').forEach(target => {
|
|
|
|
target.innerHTML = ''
|
2019-08-16 23:25:07 +00:00
|
|
|
|
2020-11-20 00:23:23 +00:00
|
|
|
new InputTag({ target, props: { ...target.dataset } })
|
|
|
|
})
|
2020-01-28 21:05:59 +00:00
|
|
|
|
2020-11-20 00:23:23 +00:00
|
|
|
document.querySelectorAll('.mapable').forEach(target => {
|
|
|
|
target.innerHTML = ''
|
2020-01-28 21:05:59 +00:00
|
|
|
|
2020-11-20 00:23:23 +00:00
|
|
|
new InputMap({ target, props: { ...target.dataset } })
|
|
|
|
})
|
|
|
|
})
|