Just yesterday I was testing a game and went to type in a textbox, and a dropdown appeared below it with a suggestion. It’s never done that before. How would this be disabled? I’ve tried this:
Hmm. I’m not sure how to get around that. For some reason, autocomplete is one of those stupid things that should be controlled by CSS but isn’t (the same way that preventing images from being dragable isn’t). Because of that, I’m not sure how to go about adding autocomplete if you can’t just do it the way that you’re attempting. Hopefully someone else knows a trick that I don’t.
Yes, I’ve also been wondering how to universally turn off draggability for a long time (I’ve also been inconvenienced by draggable images on other sites: I think a lot of people would appreciate an easy way to turn it off).
Yeah. You can disable text highlighting in CSS (even though every browser has a slightly modified attribute name, so you have to write like 8 lines of CSS to flip a bit), but not image dragging. Don’t those seem like they should to hand in hand? HTML and CSS has come a long way, but every now and then I’m like “Really, guys? This is still a thing? Really?!”
I thought I had tried it before, but maybe it works inconsistently. Of course you have to run it again whenever a new image is added to the passage, and I think I’ve already found some inconsistency in it working in such cases.
Incidentally, in Inspect, I see that when the dropdown appears it is adding the class “focus-visible” and adding “data-focus-visible-added” to the end of the input tag. If I switch to another tab and back these remain (the textbox is still in focus), but the dropdown disappears.
Hmm… but in another game the textbox doesn’t add those things when the textbox comes in focus. It’s using SugarCube 2.31.0.
Got interrupted by a birthday project, but once I got to try it (and got used to the different syntax after a few errors), this has indeed solved the problem! Thank you again!