fixed boolean tooltips not showing
set `title` of (first) label element instead of document-fragment (of template)
This commit is contained in:
parent
f16e0b6daa
commit
4366b15b7d
@ -146,8 +146,6 @@ function importTemplate(id) {
|
||||
|
||||
function renderBooleanPref(shortDescription, description, prefName) {
|
||||
var wrapper = importTemplate("checkbox-template");
|
||||
wrapper.title = description;
|
||||
|
||||
var checkbox = wrapper.querySelector('input[type="checkbox"]');
|
||||
checkbox.onchange = function () {
|
||||
var pref = {};
|
||||
@ -155,6 +153,7 @@ function renderBooleanPref(shortDescription, description, prefName) {
|
||||
storageArea.set(pref);
|
||||
};
|
||||
wrapper.querySelector("span").textContent = shortDescription;
|
||||
wrapper.querySelector("label").title = description;
|
||||
document.getElementById("settings-boxes").append(wrapper);
|
||||
|
||||
function renderPreference(value) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user