ElemeFE / ElemeFE/vue-msgbox

TypeError when init prompt with inputValue

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
233
Forks
80
PR merge metrics
No merged PRs in 30d

Description

code
`MessageBox.prompt('msg', 'title', { inputValue: 'sth' })`

got
`TypeError: Cannot read property 'classList' of undefined
at VueComponent.validate (eval at (app.js:936), :3208:23)
at VueComponent.boundFn [as validate] (eval at (app.js:636), :127:12)
at VueComponent.inputValue (eval at (app.js:936), :3221:14)
at Watcher.run (eval at (app.js:636), :2495:19)
at flushSchedulerQueue (eval at (app.js:636), :2275:13)
at Array.eval (eval at (app.js:636), :456:20)
at nextTickHandler (eval at (app.js:636), :405:16)
at `

Seems that `this.$refs.input` is not ready.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.