Open jeong-sik opened 2 years ago
tui-ico-date className 을 가진 친구가 svg Element 일 경우 util.js 에서 className 을 올바르게 찾지 못해 에러가 납니다.
tui-ico-date
Steps to reproduce the behavior:
<div className={wrapperClassName} onClick=handleClick> <div className={Cn.\"<:>"("tui-datepicker-input tui-datetime-input tui-has-focus", "")}> <input type_="text" // ref={ReactDOM.Ref.domRef(inputRef)} onFocus=handleFocus defaultValue=date onKeyDown={e => e->ReactEvents.stopSyntheticDefaultEvent} id="tui-date-picker-target" ariaLabel="Date-Time" /> <Svg.Calendar className="tui-ico-date" height="28px" width="28px" fill="" /> </div> <div id="tui-date-picker-container" className={Cn.\"<:>"(selectorClassName, style(. [marginTop(px(-1))]))} /> </div>
A clear and concise description of what you expected to happen. 위 코드일 경우 input의 icon 을 클릭할 경우 className 에 직접 접근하다가 오류를 뱉는 경우가 있습니다.
If applicable, add screenshots to help explain your problem.
classList 를 쓰고싶긴 한데 IE8 에 없군요
I am also running into this issue when using a button with an icon.
Describe the bug
tui-ico-date
className 을 가진 친구가 svg Element 일 경우 util.js 에서 className 을 올바르게 찾지 못해 에러가 납니다.To Reproduce
Steps to reproduce the behavior:
tui-ico-date
className 을 가진 SVG 엘리먼트를 추가Expected behavior
A clear and concise description of what you expected to happen. 위 코드일 경우 input의 icon 을 클릭할 경우 className 에 직접 접근하다가 오류를 뱉는 경우가 있습니다.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
classList 를 쓰고싶긴 한데 IE8 에 없군요