Commit 13d8d65e authored by Aarni Koskela's avatar Aarni Koskela

hints: don't process elements that already have a title

parent 5e4a0e3d
......@@ -118,7 +118,9 @@ titles = {
onUiUpdate(function(){
gradioApp().querySelectorAll('span, button, select, p').forEach(function(span){
tooltip = titles[span.textContent];
if (span.title) return; // already has a title
let tooltip = titles[span.textContent];
if(!tooltip){
tooltip = titles[span.value];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment