GithubHelp home page GithubHelp logo

QOL changes about snappass HOT 4 CLOSED

pinterest avatar pinterest commented on September 28, 2024
QOL changes

from snappass.

Comments (4)

devinlundberg avatar devinlundberg commented on September 28, 2024

For 1) autocomplete="off" should prevent this. It looks like we have that property applied to the textarea tag instead of the form tag. Moving it to the right html tag should resolve the issue and is likely a better solution than a javascript based one (since some users could have js disabled as you call out).

For 2) I don't know of a better solution and a javascript solution sounds reasonable (this doesn't actually break anything if javascript is disabled). Many browsers do warn that you are about to resubmit the form for refresh on POSTs and I'm able to reproduce this warning on chrome with snappass so I think this is the least impactful issue you flagged.

For 3) I think a server-side solution to not generate links for empty data might be best here. Should a be a simple if statement. We could also add the required property to the form field to prevent this client side.

from snappass.

bensharp1 avatar bensharp1 commented on September 28, 2024

These all sound good.

I have just moved the autocomplete='off' to the form tag, and that has resolved that issue even with Javascript disabled as you say.

Having both a server-side and client-side solution for 3) would be great.

from snappass.

jparise avatar jparise commented on September 28, 2024

@bensharp1 would you mind opening a Pull Request for that autocomplete="off" change given that you've successfully verified that approach?

from snappass.

nichochar avatar nichochar commented on September 28, 2024

Closing this, as these were addressed, merged and deployed in 1.4.2

from snappass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.