Skip to content
This repository has been archived by the owner. It is now read-only.

Default selected option #38

Closed
Arduinology opened this issue Dec 3, 2014 · 2 comments
Closed

Default selected option #38

Arduinology opened this issue Dec 3, 2014 · 2 comments

Comments

@Arduinology
Copy link

@Arduinology Arduinology commented Dec 3, 2014

My Expectation here would be that 'Option 1' would be selected by default once the page loads. This is not what is happening. Instead it shows the label, not the selected option based on the paper-item value attribute.

    <paper-dropdown-menu name="dropdown" label="Dropdown" selected='1' valueattr='value'>
        <paper-dropdown class="dropdown">
            <core-menu class="menu">
                <paper-item value="1">Option 1</paper-item>
                <paper-item value="2">Option 2</paper-item>
            </core-menu>
        </paper-dropdown>
    </paper-dropdown-menu>
@robdodson
Copy link

@robdodson robdodson commented Dec 4, 2014

I think you want to set the selected attribute on core-menu

On Wed, Dec 3, 2014 at 1:11 PM, Heath Naylor notifications@github.com
wrote:

My Expectation here would be that 'Option 1' would be selected by default
once the page loads. This is not what is happening. Instead it shows the
label, not the selected option based on the paper-item value attribute.

<paper-dropdown-menu name="dropdown" label="Dropdown" selected='1' valueattr='value'>
    <paper-dropdown class="dropdown">
        <core-menu class="menu">
            <paper-item value="1">Option 1</paper-item>
            <paper-item value="2">Option 2</paper-item>
        </core-menu>
    </paper-dropdown>
</paper-dropdown-menu>


Reply to this email directly or view it on GitHub
#38.

@Arduinology
Copy link
Author

@Arduinology Arduinology commented Dec 4, 2014

Thank you, that works. Thought I had already tried that combination but apparently not.

@Arduinology Arduinology closed this Dec 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.