yysun / apprun

AppRun is a JavaScript library for developing high-performance and reliable web applications using the elm inspired architecture, events and components.
https://apprun.js.org
MIT License
1.18k stars 58 forks source link

Problem using input element with list attribute #106

Closed jkleiser closed 4 years ago

jkleiser commented 4 years ago

In a SPA, I wanted to use code like this:

<form><input id="color" list="colors" /></form>
<datalist id="colors">
  <option>Red</option>
  <option>Green</option>
  <option>Blue</option>
</datalist>

It compiles, but in the browser console I get "TypeError: Attempted to assign to readonly property". I'm using apprun 1.23.13 and typescript 3.9.7. My code example is taken from https://html.com/attributes/input-list/ .

yysun commented 4 years ago

I will take a look

On Sun, Sep 13, 2020 at 11:09 AM Jon Kleiser notifications@github.com wrote:

In a SPA, I wanted to use code like this:

It compiles, but in the browser console I get "TypeError: Attempted to assign to readonly property".

I'm using apprun 1.23.13 and typescript 3.9.7.

My code example is taken from https://html.com/attributes/input-list/ .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yysun/apprun/issues/106, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABJUM2EQXVF6RI2UYC6HQDSFTOB7ANCNFSM4RKWXI7A .

yysun commented 4 years ago

It is fixed ib 1.24.0 and 2.24.0 https://apprun.js.org/#play/25