We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using, for example, a ClayButton:
var button = new ClayButton({ data: { title: 'My Button Title', }, label: 'My Button', });
The result is:
<button class="btn btn-primary" type="button" data-title="My Button Title">My Button</button>
if you change the button data the DOM element it's not getting updated with new data:
button.data.title = 'My New Title';
Expected result: <button class="btn btn-primary" type="button" data-title="My New Title">My Button</button>
<button class="btn btn-primary" type="button" data-title="My New Title">My Button</button>
Current result: <button class="btn btn-primary" type="button" data-title="My Button Title">My Button</button>
The text was updated successfully, but these errors were encountered:
Merge pull request #1276 from carloslancha/issue-1275-sync-data
a396d1c
Fixes #1275 - Sync data attributes in ClayComponent
fc7568c
carloslancha
No branches or pull requests
Using, for example, a ClayButton:
The result is:
<button class="btn btn-primary" type="button" data-title="My Button Title">My Button</button>
if you change the button data the DOM element it's not getting updated with new data:
button.data.title = 'My New Title';
Expected result:
<button class="btn btn-primary" type="button" data-title="My New Title">My Button</button>
Current result:
<button class="btn btn-primary" type="button" data-title="My Button Title">My Button</button>
The text was updated successfully, but these errors were encountered: