Skip to content

Commit 811f60f

Browse files
authored
Merge pull request wesbos#17 from petterhoel/fix-firefox-persisting-disabled-state-on-button
disables firefox feature that persists disabed state across page loads
2 parents 889b2a5 + 6139979 commit 811f60f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

exercises/35 - Scroll To Accept/scroll-to-accept.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,17 @@
4444
molestiae sit sunt fugiat, perspiciatis architecto velit unde molestias ratione totam, atque doloremque!</p>
4545
<hr>
4646
</div>
47-
<button class="accept" disabled>Accept</button>
47+
<!--
48+
autocomplete="off" adresses an issue with firefox
49+
where the browser will persist dynamic disabled state
50+
on buttons across page loads.
51+
52+
More info here (se 'disabled' under 'Attributes')
53+
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button
54+
55+
This may or may not be desired in a real world scenario 🙃
56+
-->
57+
<button class="accept" disabled autocomplete="off">Accept</button>
4858
</div>
4959

5060
<style>

0 commit comments

Comments
 (0)