Commit a3bd6dd
fix: prevent search field interaction during drag operations
Fixed an issue where the search field in fullscreen mode remained
interactive during drag-and-drop operations, causing potential conflicts
between text input and drag gestures. The search field now properly
disables interaction when any item is being dragged by checking the
currentlyDraggedId state.
The change adds a condition to the search field's interactive property
to ensure it only becomes interactive when no drag operation is active
(dndItem.currentlyDraggedId === ""). This prevents accidental text input
while users are dragging items and improves the overall drag-and-drop
user experience.
Log: Fixed search field remaining interactive during drag operations in
fullscreen mode
Influence:
1. Test drag-and-drop operations in fullscreen mode while search field
is visible
2. Verify search field becomes non-interactive when dragging starts
3. Confirm search field returns to interactive state after drag
operation completes
4. Test search functionality when no drag operations are active
5. Verify the fix doesn't affect search field behavior in normal usage
scenarios
fix: 修复拖拽操作期间搜索字段保持交互状态的问题
修复了全屏模式下搜索字段在拖放操作期间保持交互状态的问题,该问题可能
导致文本输入和拖拽手势之间的冲突。现在搜索字段在检查到有项目被拖拽时
(currentlyDraggedId状态)会正确禁用交互。
此更改为搜索字段的interactive属性添加了一个条件,确保只有在没有拖拽操作
活动时(dndItem.currentlyDraggedId === "")才变为交互状态。这防止了用户
在拖拽项目时意外输入文本,并改善了整体拖放用户体验。
Log: 修复了全屏模式下拖拽操作期间搜索字段保持交互状态的问题
Influence:
1. 测试全屏模式下搜索字段可见时的拖放操作
2. 验证拖拽开始时搜索字段变为非交互状态
3. 确认拖拽操作完成后搜索字段恢复交互状态
4. 测试没有拖拽操作活动时的搜索功能
5. 验证修复不影响正常使用场景下的搜索字段行为
PMS: BUG-315733 BUG-3157291 parent 83f744d commit a3bd6dd
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
0 commit comments