Last active
January 11, 2024 04:59
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.row-block { | |
position: relative; | |
/* and absolute, fixed, sticky, inherit */ | |
/* however these are worked : static, initial, revert, revert-layer, inset */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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