Skip to content

Instantly share code, notes, and snippets.

@rotorri
Last active January 11, 2024 04:59
Show Gist options
  • Save rotorri/4655f5e3d2f9aa84136cced8e2a1e0bc to your computer and use it in GitHub Desktop.
Save rotorri/4655f5e3d2f9aa84136cced8e2a1e0bc to your computer and use it in GitHub Desktop.
In repeat section, on(clicked) event listener doesn't worked by specific CSS style. (cc. https://app.roll20.net/forum/post/11753312/in-repeat-section-on-clicked-event-listener-doesnt-worked-by-specific-css-style)
.row-block {
position: relative;
/* and absolute, fixed, sticky, inherit */
/* however these are worked : static, initial, revert, revert-layer, inset */
}
<!-- contact : the_rotorri@Twitter // rotorri.com@Bluesky // github.com/rotorri -->
<div class="sheet-rotorri">
Check Console log
<fieldset class="repeating_row">
<div class="row-block">
<button type="action" name="act_here" class="btn">Click me</button>
</div>
</fieldset>
</div>
<script type="text/worker">
const array = ["here"];
array.forEach(rowdel => {
on(`clicked:repeating_row:${rowdel}`, function() {
console.log('a');
// This on(clicked) event listener doesn't worked.
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment