Coder Social home page Coder Social logo

IOS: When user opens the dropdown, by default, it shows as if first option is selected (highlighted in the dial), when user taps on 'done' button without rolling the dial, then first option is not selected about nativescript-drop-down HOT 6 CLOSED

vasudevpareek07 avatar vasudevpareek07 commented on June 1, 2024
IOS: When user opens the dropdown, by default, it shows as if first option is selected (highlighted in the dial), when user taps on 'done' button without rolling the dial, then first option is not selected

from nativescript-drop-down.

Comments (6)

PeterStaev avatar PeterStaev commented on June 1, 2024

Hey @vasudevpareek07 , this is how the list component works in iOS. You will have to add a custom not selected value as part of the list and adjust your logic based on that.

from nativescript-drop-down.

vasudevpareek07 avatar vasudevpareek07 commented on June 1, 2024

@PeterStaev, Thanks for the quick response. Is it possible to style a particular option in dropdown.

from nativescript-drop-down.

PeterStaev avatar PeterStaev commented on June 1, 2024

Currently this is not possible.

from nativescript-drop-down.

vasudevpareek07 avatar vasudevpareek07 commented on June 1, 2024

@PeterStaev, I have added a option called as 'Select Client' in the list as first option. I am emitting the data to the parent component if the selectedIndex is greater than 0 in IOS, but when I select the first option ('Select Client'), that value is shown as selected in the dropdown field although I am setting the selectedIndex = null if selectedOption index is 0. Is there any other way I can reset/deselect the selected option ?

from nativescript-drop-down.

PeterStaev avatar PeterStaev commented on June 1, 2024

No there isn't. That's what I mean that in iOS the list picker always shows the first item as selected, but it can be that it isn't actually selected.

from nativescript-drop-down.

PeterStaev avatar PeterStaev commented on June 1, 2024

No further response so closing this one for now. In case you still have problems, please provide more details.

from nativescript-drop-down.

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.