MarketingPipeline / Code-Runner-Web-Component

A web component that allows you to run high level programming languages on your websites (static websites included!)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug Report]: v1.0.4 has shared state issue.

MarketingPip opened this issue · comments

This current version has a shared state issue - which went un-noticed to my own self error in not properly testing the library before publishing it.

In the case's where more than <code-runnner> is included the dom. The value from the last included web component is being used to be sent to the API.

This is due to not properly grabbing the values of the Ace Editor API - as far as I do believe.

Steps to reproduce the behavior:

  1. Go to demo page.
  2. Add console.log('test') into "Undefined Code".
  3. Press run on both displayed components.

Previous versions of this web component do NOT have this issue.

This issue has been now been solved in version: 1.0.5.