azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
2.99k stars 108 forks source link

[BUG]: Input resets the cursor position #159

Closed Kawanaao closed 3 months ago

Kawanaao commented 7 months ago

What happened?

When typing any text in the fields when initializing a new SRVAPP, the input fails and when entering any character in the field, the cursor moves to the end of the input

What should have happened?

Input should work like in other parts of cosmos

How to reproduce the bug?

  1. Go to Market
  2. Select any application (Filebrowser in my case)
  3. Enter in the allow volumes field change in path
  4. See glitch

System details

azukaar commented 7 months ago

I guess the input re-renders, backstory on those components: back then I didnt know that forkmik could do arrays in values, so I implemented it myself, but it causes unnecessary re-renders Same with ports, env, labels, etc... they need refactor

azukaar commented 3 months ago

Fixed in 0.15.4