DTStack / DTStack/molecule

bug: Can't controls the default behavior of updateName

Open
#744 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
970
Forks
141
PR merge metrics
No merged PRs in 30d

Description

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

2. 在 Input 框中点击会触发 onLoad 事件,实际上不应该触发

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

### Versions

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

### To reproduce

### Expected

### Actually happening

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.