field value get messed when use with sortable.js

オープン
#2,002 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, typescript
領域
frontend

調査の方向性

@tanstack/vue-form、Vue、SortableJSを使用したリンク先のCodeSandbox再現から始め、次に項目の並べ替え中におけるフィールドのレンダリングを追跡します。ドラッグすると、表示されている入力値と基盤となるfield.state.valueの両方が入れ替われば完了です。

索引モデルが issue の本文から書いたものです。

説明

v1 v2: needs investigation
Describe the bug

field value get messed when use with sortable.js

Your minimal, reproducible example

https://codesandbox.io/p/devbox/tg34w3

Steps to reproduce

click add and input 2 different values in the input element then drag the handler to reorder, you will see the rendered input value is not swapping while the field.state.value is updated correctly

Expected behavior

the input value is correctly displayed

How often does this bug happen?

None

Screenshots or Videos

No response

Platform

not related

TanStack Form adapter

None

TanStack Form version
"@tanstack/vue-form": "1.27.7",     "sortablejs": "1.15.6",     "vue": "^3.5.13"
TypeScript version

No response

Additional context

No response

主要言語
TypeScript
スター
6.8k
フォーク
705
平均マージ
1日 7時間
マージ済み PR(30日)
14

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/form のほかの issue

TanStack/form の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。