<p dir="auto">Continuation of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1321373809" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3634" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/3634/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/3634">#3634</a> which I didn't have time to finish in August...</p>
<p dir="auto"><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3634#issuecomment-1199687741" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/3634/hovercard">As I said</a> there's a different bug when tooltips are enabled/disabled and it needs a different fix. You can trigger the bug like this:</p>
<ol dir="auto">
<li>reload the website when the map is zoomed in enough for the control element (for example, the Edit button above the map) to be enabled and tooltip to be disabled</li>
<li>hover the mouse over the control element - nothing should happen at this moment</li>
<li>zoom out until the element is disabled</li>
<li>hover the mouse over the control element again - now you should get the error from this Bootstrap issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1059148245" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/35375" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/35375/hovercard" href="https://github.com/twbs/bootstrap/issues/35375">twbs/bootstrap#35375</a></li>
</ol>
<p dir="auto">The fix is to use <a href="https://getbootstrap.com/docs/5.1/components/tooltips/#disable" rel="nofollow">.disable()</a> method on tooltip objects instead of trying to set the <code class="notranslate">data-bs-original-title</code> to empty string. <code class="notranslate">data-bs-original-title</code> is undocumented anyway.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/3688'>https://github.com/openstreetmap/openstreetmap-website/pull/3688</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3688/commits/31a39d3479462ced8127f0f12e3f0133ce39263a" class="commit-link">31a39d3</a> Fix zoom level related tooltips except for layer checkboxes</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3688/commits/e409e83b4886ce918c64f5c4cd7fa30cbc1ba14f" class="commit-link">e409e83</a> Merge tooltip fixes/tests</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3688/commits/e8f2af833ac73f953cb65d06b8861c0f9844e852" class="commit-link">e8f2af8</a> Fix zoom level related tooltips for layer checkboxes</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3688/commits/84c8289e06c092ac987c2abe0d8394df3ab9630f" class="commit-link">84c8289</a> Fix zoom level related tooltip for Edit button</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3688/commits/63f9ee3db6314d7189599c4b1a7e27657bda8ad8" class="commit-link">63f9ee3</a> Add bootstrap to js globals</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3688/files">4 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3688/files#diff-0e145ba000e96b1a45d230275e350e4e8514efb4db7dbcfa228fe1003896c9b4">app/assets/javascripts/application.js</a>
(15)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3688/files#diff-87e33ea7d5e625dd851a78a3192719681de20caea8edd278a10f5342585c98e7">app/assets/javascripts/leaflet.layers.js</a>
(19)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3688/files#diff-6b68c8e53bfd9ee0c6a0cb4d346af533a3587842ee3b37a486764a9315d80886">config/eslint.json</a>
(1)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3688/files#diff-43c6cbf1d8474dfd3889f066ee578a693a1b3ca863f407b07663e0f59102b4ed">test/system/site_test.rb</a>
(50)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3688.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3688.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3688.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3688.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3688">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPMPHCI5QCC7BEM2U3V577TJANCNFSM6AAAAAAQLBUFPU">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJQHKL7YHYMYPCQVELV577TJA5CNFSM6AAAAAAQLBUFPWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFDNKVIU.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/3688</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3688",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3688",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>