molecule icon indicating copy to clipboard operation
molecule copied to clipboard

bug: Can't controls the default behavior of updateName

Open mortalYoung opened this issue 3 years ago • 1 comments
trafficstars

Describe the bug

image 1. 目前有如下需求,我通过右键菜单-创建新文件夹打开这个 Input 框,然后我的文件夹创建存在限制条件,条件是不可以大于 64 个字符,但是如果用户输入超出 64 个字符,我只能阻止创建文件,但是无法阻止 Input 消失。 这个交互不是非常好
  1. 在 Input 框中点击会触发 onLoad 事件,实际上不应该触发

  2. onLoad 配合新建文件夹有交互问题。具体表现为若当前文件夹从未触发过 onLoad 事件,通过点击创建文件夹,则无法创建文件夹。

Versions

  • OS: MacOS
  • Browser: Chrome
  • Molecule: @dtinsight/molecule 0.9.0-beta.4.2

To reproduce

Expected

Actually happening

mortalYoung avatar May 19 '22 10:05 mortalYoung

跟修能评估了一下第一条有break changing,本次先解决第2 3条

mumiao avatar Jul 12 '22 03:07 mumiao