XMOJ-Script-dev / XMOJ-Script

XMOJ增强脚本
https://www.xmoj-bbs.me
GNU General Public License v3.0
4 stars 5 forks source link

[Bug]提交页面下可能会遇到不让输入的情况 #409

Closed zhouyiqing0304 closed 6 months ago

zhouyiqing0304 commented 6 months ago

检查项

描述

给一个屁用没有过的框子,点击也没反应

重现步骤

只要是提交页面就是这样

控制台错误信息

userscript.html?name=XMOJ.user.js&id=829a9a59-3694-4ceb-a652-79cc3cd5c13e:3673 {Success: true, Data: {…}, Message: '数据发送成功'}Data: {}Message: "数据发送成功"Success: true[[Prototype]]: Object edit_area_full.js:2 Uncaught TypeError: Cannot read properties of null (reading 'parentNode') at EAL.start (edit_area_full.js:2:5199) at :1:5 start @ edit_area_full.js:2 (匿名) @ VM4735:1 setTimeout(异步) start @ edit_area_full.js:2 (匿名) @ VM4729:1 setTimeout(异步) start @ edit_area_full.js:2 (匿名) @ VM4726:1 setTimeout(异步) start @ edit_area_full.js:2 (匿名) @ VM4725:1 setTimeout(异步) start @ edit_area_full.js:2 init @ edit_area_full.js:2 (匿名) @ submitpage.php?cid=6935&pid=0&langmask=5:99

boomzero commented 6 months ago

hmm

boomzero commented 6 months ago

@zhouyiqing0304 和 https://github.com/langningchen/XMOJ-Script/issues/26 一样吗

boomzero commented 6 months ago

哦, regression

boomzero commented 6 months ago

great...

boomzero commented 6 months ago

评价一下: 等几秒

boomzero commented 6 months ago

其实有两种方案:

  1. 让整个脚本变得慢
  2. 让个别功能变得慢
boomzero commented 6 months ago

@zhouyiqing0304

可以开一下这个

image
zhouyiqing0304 commented 6 months ago

ok

boomzero commented 6 months ago

遗憾的是, 可以复现

boomzero commented 6 months ago

@zhouyiqing0304 fixed!

boomzero commented 6 months ago

@zhouyiqing0304 The fix is in dev