baidu / baidu/amis

dateTime组件,在sdk下报错(移动端)

Open
#4,802 2 comments 0 reactions 0 assignees View on GitHub
need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

引用sdk ,1.9.0版本
let amis = amisRequire('amis/embed');
let amisJSON = {
"type": "page",
"body": {
"type": "form",
"api": "/amis/api/mock2/form/saveForm",
"body": [
{
"type": "input-datetime",
"name": "datetime",
"label": "日期时间"
}
]
}
}
let amisScoped = amis.embed('#root', amisJSON)
点击选择时间报错,如下:
TypeError: Cannot read properties of null (reading 'parentNode')

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue using the provided amis/embed configuration with SDK version 1.9.0 and the input-datetime field, then trace the resulting null parentNode error from the date-time selection flow. Done means selecting a date and time no longer throws the reported TypeError in the mobile SDK scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.