Code Monkey home page Code Monkey logo

Comments (5)

jotdl avatar jotdl commented on August 14, 2024

This happened with the TagBuilder component. If you don't press the ⏎ or , key, the last element/tag you enter won't be added to the value of this component.

As it's kind of hidden to the user if it's a TagBuilder or TextField component (styling is very similar), the user won't know if he has to press ⏎/, or not. Once he submits the form without pressing those key within that field his last input get's lost.

Is there an option to trigger the finish of a Tag within the Component upon form submission?

from precise-ui.

FlorianRappl avatar FlorianRappl commented on August 14, 2024

Is there an option to trigger the finish of a Tag within the Component upon form submission?

My opinion here is that the last piece of the TagBuilder input should always be considered an element (that is still in "edit" mode; but that does not take away its status as being a valid element or "tag").

I guess that requires some internal rework of the component, but it would be the most natural behavior and comply with the implementation of similar components on other websites.

from precise-ui.

dimabory avatar dimabory commented on August 14, 2024

I have got an idea to add the new directive into TagBuilder to turn on(off) auto submission of the edited tag on onBlur event. It can look something like this:

<TagBuilder appendTagOnBlur/>

from precise-ui.

ZEISSLaurinAgostini avatar ZEISSLaurinAgostini commented on August 14, 2024

I will implement this appendTagOnBlur prop as proposed by @dimabory.

from precise-ui.

dimabory avatar dimabory commented on August 14, 2024

@FlorianRappl @jotdl are you ok with it?

from precise-ui.

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.