interactions does not work when pass as config
Open
Question
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 591
- PR merge metrics
- No merged PRs in 30d
Description
If you specify below interactions, chart is not able to be rendered:
var config = {
......
interactions: [{type: 'element-selected', cfg: {
start: [
{
trigger: 'element:click',
**action: 'element-selected:selected',**
callback(context) {
alert("ok");
}
}]
}}],
};
return ;
### 💻 Link to minimal reproduction
It can be reproduced by : https://codesandbox.io/s/wf152?file=/App.tsx:0-1011
### 🏞 Expected result
Chart should be rendered correctly
### 🚑 Any additional [like screenshots]

* **G2Plot Version**:
* **Platform**:
Contributor guide
Assessment
This issue has not been assessed yet.