Flickering occurs for the field if there is a JavaScript logic for that (even if you clicked any other field)

未關閉
#1,050 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
angular, typescript
領域
frontend

研究方向

首先,按照重現步驟中的描述,在包含 Checkbox Field 和 owl date picker 的 Angular 表單預覽中,使用 console.log(123) 之類的 JavaScript 邏輯重現問題。追蹤點選核取方塊時執行的呈現或變更處理;當核取方塊互動不再造成明顯閃爍時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

bug
  • Hosting type: local and https environments as well
  • Formio.js version: 4.12.0 ("angular-formio": "4.12.0")
  • Frontend framework: Angular
  • Browser: Chrome and other as well
  • Browser version: all versions (but check in latest version)

Steps to Reproduce

  1. Drag and drop the Checkbox Field component & save it with normal configurations
  2. Drag and drop one custom date picker component (we used owl date picker with version i.e., "ng-pick-datetime": "^7.0.0"). Add logic to this component in js (you can add simple console.log(123) or some condition )
  3. Now, While Previewing in other page, Just click on Checkbox (configured in first step)

Expected behavior

Not expecting to flicker

Observed behavior

Example

If possible, please provide a screenshot, live example (via JSFiddle or similar), and/or example code to help demonstrate the issue.
Normal View:
image

I clicked on checkbox (enable mode) it flickered again i unchecked the checkbox, The View after clicking on Checkbox below(flickering happening for one sec)
image

For code or form JSON, please enclose in a code block:

console.log("abc")
// or you can write any other condition you want
主要語言
TypeScript
星號
706
分支
493
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 有 Pull Request 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

formio/angular 的其他 Issue

查看 formio/angular 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。