- LyricSearch: misc/field focus, validation
- Nav: further improvements
This commit is contained in:
@@ -324,6 +324,16 @@ export function LyricSearchInputField({ id, placeholder, setShowLyrics }) {
|
||||
const statusTitle = statusLabels[inputStatus];
|
||||
const StatusIcon = statusIcons[inputStatus] || RemoveRoundedIcon;
|
||||
|
||||
useEffect(() => {
|
||||
const inputEl = autoCompleteInputRef.current;
|
||||
if (!inputEl) return;
|
||||
if (statusTitle) {
|
||||
inputEl.setAttribute("title", statusTitle);
|
||||
} else {
|
||||
inputEl.removeAttribute("title");
|
||||
}
|
||||
}, [statusTitle]);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className="lyric-search-input-wrapper">
|
||||
|
||||
Reference in New Issue
Block a user