Comments (3)
Am I right that it's only happening if the input is focused and not readonly?
Here is a modified example: https://gist.github.com/gdotdesign/f2dcb32b5b2843452876f89d5d303094
from html.
I missed the conversation about this on #elm-dev yesterday. The most likely reason I would need this (or some other equivalent) is to clear the value of an input after a form submit, for example If I had a chat app, and I had an input used to key the message, I'd need some way of clearing the input value after the message was submitted.
I think @rtfeldman suggestion would work good:
tl;dr
value
is innately buggy and should probably be replaced bydefaultValue
+setValue
I'm not sure I like removing the value function (attribute), as it reduces elm-html parity with html. Maybe keep value, with bold guidance to consider the alternative (whatever that might be).
From a perf stand point: I see how this might make perf testing look worse but I'm having a hard time seeing how this would result in perf issues in most real scenarios.. Might be short sighted on my part.
from html.
I did a fix for this in elm-lang/virtual-dom@4be12eb
from html.
Related Issues (20)
- Docs for map link to non-existent page in the elm guide HOT 1
- Iframe element children are put outside of the inner html/body HOT 1
- dsqds HOT 5
- dsqdsdsq
- dsqdsdsq
- The href attribute cannot be removed once added
- Broken link in Events.elm
- Add empty attribute that does absolutely nothing HOT 1
- buat ajas
- input type="range" renders incorrectly depending on the order of attributes
- Custom fonts? HOT 1
- There is no picture tag HOT 2
- Www
- Iframe's srcDoc allow arbitrary scripts which can result in unsafe packages published HOT 1
- HTML HOT 1
- Test
- Document for Attributes.value confuses attribute and property
- Runtime exception when using invalid characters or "" as attribute name
- HTML HOT 1
- App development
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html.