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

Tangle elements changing data- attributes based on changing values #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

invaliduser
Copy link

Hi, we're big fans of Tangle @ my company, but we ran into an issue when trying to limit one element based on another. Changing the data-max variable did nothing, as Tangle takes the attributes at initialization and then never looks at them again.

So I took some code from your getOptionsForElement function and dropped it into the touchDidMove function of the TKAdjustableNumber class. I'm still something of a js newb, so I wasn't sure how to just call the gOFE function from there.

But this was how I fixed it, allowing data- attributes to change after inititialization (and even within one click, -format being the main application that I can think of).

Thanks for a great library!

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

Successfully merging this pull request may close these issues.

2 participants