Git Product home page Git Product logo

Comments (3)

schalkneethling avatar schalkneethling commented on July 20, 2024

But if I then switch back to row A, the Reset button does not reappear - it's now impossible to get back to the original without reloading the page.

Yeah. So, I did make it so the Reset button shows by default if the field was in an invalid state. Making this change means that, we will also show the reset button by default unless, the current state matches the original state. Correct?

from interactive-examples.

wbamberg avatar wbamberg commented on July 20, 2024

Yes, I think Reset should be displayed if both the following are true:

  • the row is selected
  • the contents of the row is different from its original contents

To me, the point is that there's "invalid" meaning "invalid CSS", and "invalid" meaning "not the CSS I meant to write". Say I start with the CSS in an example and want to tweak it. I change it, and don't get the effect I want, but still get something technically valid. I now can't go back to the original without reloading the page.

from interactive-examples.

schalkneethling avatar schalkneethling commented on July 20, 2024

Ok so, the flow is as follows:

-> Select row
-> If row was in an invalid state => show reset
-> If the current CSS is not equal to the original CSS => Show reset
-> If current CSS and original CSS match => No reset

from interactive-examples.

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.