Skip to content

Commit 61a1190

Browse files
committed
fix: fix cr
1 parent 145da6e commit 61a1190

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/search/Search.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ const Search: FC<SearchProps> = (props) => {
130130
value={searchValue}
131131
type="search"
132132
className={`${inputClasses}`}
133-
style={{ '--td-search-cursor-color': props.cursorColor } as React.CSSProperties}
133+
style={
134+
props.cursorColor ? ({ '--td-search-cursor-color': props.cursorColor } as React.CSSProperties) : undefined
135+
}
134136
autoFocus={focus}
135137
placeholder={placeholder}
136138
readOnly={readonly}

0 commit comments

Comments
 (0)