Set aria-label on main input

This commit is contained in:
Pavel Djundik 2017-12-27 22:34:19 +02:00
parent 835236f8ac
commit bd9e219d92

View File

@ -402,7 +402,7 @@ $(function() {
if (type === "channel" || type === "query") { if (type === "channel" || type === "query") {
placeholder = `Write to ${chan.data("title")}`; placeholder = `Write to ${chan.data("title")}`;
} }
input.attr("placeholder", placeholder); input.attr("placeholder", placeholder).attr("aria-label", placeholder);
if (self.hasClass("chan")) { if (self.hasClass("chan")) {
$("#chat-container").addClass("active"); $("#chat-container").addClass("active");