ampproject / ampproject/amphtml

Attribute bindings inside amp-render doesn't work

Open
#39,628 1 comment 0 reactions 0 assignees View on GitHub
Component: amp-bind estimate: medium P2: Soon Stale Type: Bug
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### Description

Binded attributes inside amp-render template don't reflect state changes. Even if amp-render has *binding="always"* option binded attributes show only initialization state and don't show actual state.

In example below binded attibute *[text]* outside amp-render reflects state changes, but *[text]* inside component still show initialization state.

### Reproduction Steps

https://share.gemozlob.in/amp-render-bug.html

Click on "set foo" / "set bar" button

### Relevant Logs

_No response_

### Browser(s) Affected

_No response_

### OS(s) Affected

_No response_

### Device(s) Affected

_No response_

### AMP Version Affected

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.