基本上我有一个时间下拉列表,但是在I.E上所选时间没有滚动
scrollIntoView
if (open) {
setTimeout(() => {
this.props.value &&
this[this.props.value] &&
this[this.props.value].scrollIntoView({
behavior: 'smooth',
block: 'nearest',
inline: 'nearest'
});
}, 300);
}
我尝试检查您的示例代码,发现您正在尝试使用IE浏览器不支持的behavior:'smooth'