Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On-event doesn't properly utilize capture #59

Closed
killamocingbird opened this issue Apr 19, 2022 · 2 comments
Closed

On-event doesn't properly utilize capture #59

killamocingbird opened this issue Apr 19, 2022 · 2 comments
Milestone

Comments

@killamocingbird
Copy link

This code doesn't work

<<for _idx, _title range $player.titles>>
    <<capture _title>>
        <<on "click" `"#char_" + _title`>>
            <<set $selected_title = _title>>
            <<popover>>
                <<include titleTutorial>>
            <</popover>>
        <</on>>
    <</capture>>
<</for>>

Specifically, when the event is fired, $selected_title is always set to the last title (IE not the _title that was captured).

@ChapelR
Copy link
Owner

ChapelR commented Apr 21, 2022

Thanks for the issue. I'll add support for capture when I have time.

@ChapelR ChapelR added this to the v2.10.0 milestone Jul 15, 2022
@ChapelR
Copy link
Owner

ChapelR commented Jul 21, 2022

Sorry this took so long.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants