Comments (5)
I looked into it. The issue with this line: https://github.com/BuilderIO/qwik/blob/e4493e57f1e5bdad89b071ab0c824a9efd367e93/starters/apps/starter/src/my-app.tsx#L25
Notice that there is text + {' '}
. Thes creates two text nodes. When these text nodes get serialized into HTML they get merged into one. Once the reconciliation algorithm runs the result is that the JSX does not match the HTML and results in the <input
being destroyed and re-created. This results in a loss of focus.
I think the fix is to update the reconciliation algorithm to see when there is extra text and auto-create text nodes out of it. Should be a straightforward fix.
from qwik.
Fixed by 7fadd18
from qwik.
I noticed this issue too
from qwik.
Tried a few different scenarios and looked at the flash of updates in dev tools...
Put the text in a paragraph (focus issue goes away)
Placing the input as a lone sibling and things work as expected?
Any ideas? 🤔
from qwik.
I found that the replaceNode
function causes this by removing the input
element before putting the mounted input
. So perhaps it should keep focus after replacing. You'll see this by setting a break point for when the initial input
element is removed.
from qwik.
Related Issues (20)
- [📖] docs layout issue with changed browser-wide default font size HOT 1
- [🐞] error when using `stack.raw()` on a project with panda css integration HOT 1
- [🐞] useStyles$/useStylesScoped$ duplicates CSS in bundle
- [🐞] pnpm run build hang when i use ioredis and bullmq HOT 3
- [✨] add reset button to tutorial
- [🐞] If Signal is used by useTask$ it doesn't re-render should it work that way? HOT 6
- [🐞] Warned when serializing `JSXNode`. HOT 4
- [🐞] RouteAction submitted programmatically not working in a vercel edge environment HOT 2
- [🐞] Production Build with Qwik Framework - Uncaught TypeError HOT 5
- [🐞] Error: Actions can not be invoked within the server during SSR. HOT 2
- [🐞] - Blank project not running - Sharp Error HOT 3
- Qwik showcase page has zooms in after scrolling to certain part HOT 4
- [🐞] Custom 404 is generated, but not used automatically HOT 1
- [🐞] Docker devcontainer build fails
- Qwik won't build If I try using Broadcast Channel HOT 9
- [🐞] Dynamic require of "tty" is not supported when adding builder.io integration
- How should I combine useAuthSession with a simple axios wrapper?
- [✨] How to load dynamic configuration and settings for both server-side and client-side? HOT 1
- [🐞] SSG works even without intending so HOT 9
- [🐞] Can't build project via `bun run --bun` HOT 5
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 qwik.