Coder Social home page Coder Social logo

Comments (8)

FreakDroid avatar FreakDroid commented on June 30, 2024 1

@michelengelen Thanks. how this is the expected behavior I'm going to close the issue.

from mui-x.

DanailH avatar DanailH commented on June 30, 2024

@FreakDroid can you check your reproduction link - it doesn't seem to work.

from mui-x.

FreakDroid avatar FreakDroid commented on June 30, 2024

@DanailH I updated the link. Sorry for that I missed it.

from mui-x.

michelengelen avatar michelengelen commented on June 30, 2024

@FreakDroid this is not a bug with our implementation, but rather the behavior of the browser specific input implementation.

You can easily check that if you just render this:

export default function NumberInput() {
  return <input type="number" />;
}

in Chrome (chromium browsers) it prevents entering text, in Safari (webkit) it doesn't.


@cherniavskii do we plan on using the Number Input from Base UI in the future?

from mui-x.

FreakDroid avatar FreakDroid commented on June 30, 2024

@FreakDroid this is not a bug with our implementation, but rather the behavior of the browser specific input implementation.

You can easily check that if you just render this:

export default function NumberInput() {
  return <input type="number" />;
}

in Chrome (chromium browsers) it prevents entering text, in Safari (webkit) it doesn't.

@cherniavskii do we plan on using the Number Input from Base UI in the future?

@michelengelen thanks for your reply. Yes, I know about this issue but what I was thinking is that you said to use Number_input instead. Although this is not a blocker in our project, I will keep an eye on this topic.

from mui-x.

michelengelen avatar michelengelen commented on June 30, 2024

@michelengelen thanks for your reply. Yes, I know about this issue but what I was thinking is that you said to use Number_input instead. Although this is not a blocker in our project, I will keep an eye on this topic.

@FreakDroid Thanks for your understanding. I am not sure, but my guess is that it was not available when building the filter panel. So what would be best from that point onwards is to open up a feature request to replace the <input type=""number /> with the NumberInput from baseUI.

I don't think that this is currently on our projects backlog.

from mui-x.

FreakDroid avatar FreakDroid commented on June 30, 2024

@michelengelen thanks for your reply. Yes, I know about this issue but what I was thinking is that you said to use Number_input instead. Although this is not a blocker in our project, I will keep an eye on this topic.

@FreakDroid Thanks for your understanding. I am not sure, but my guess is that it was not available when building the filter panel. So what would be best from that point onwards is to open up a feature request to replace the <input type=""number /> with the NumberInput from baseUI.

I don't think that this is currently on our projects backlog.

@michelengelen do you know if to do this I need to create a custom filter panel? Or if you have an example would be useful.

from mui-x.

michelengelen avatar michelengelen commented on June 30, 2024

@FreakDroid you can use the filter panel customization. Here is an example on a custom input component.

from mui-x.

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.