Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

after disabling and re-enabling, paper-dropdown-menu is no longer tabbable #80

Open
antwonthegreat opened this issue Jul 28, 2017 · 0 comments

Comments

@antwonthegreat
Copy link

antwonthegreat commented Jul 28, 2017

<link rel="import" href="../../bower_components/polymer/polymer-element.html">
<link rel="import" href="../../bower_components/paper-button/paper-button.html">
<link rel="import" href="../../bower_components/paper-listbox/paper-listbox.html">
<link rel="import" href="../../bower_components/paper-dropdown-menu/paper-dropdown-menu.html">
<link rel="import" href="../../bower_components/paper-item/paper-item.html">


<dom-module id="dropdown-error-app">
  <template>
    <style>
       :host {
        display: block;
      }
    </style>
    <h2>Hello [[prop1]]!</h2>
    <paper-dropdown-menu>
      <paper-listbox slot="dropdown-content">
        <paper-item>1</paper-item>
        <paper-item>2</paper-item>
        <paper-item>3</paper-item>
      </paper-listbox>
    </paper-dropdown-menu>
    <paper-dropdown-menu>
      <paper-listbox slot="dropdown-content">
        <paper-item>1</paper-item>
        <paper-item>2</paper-item>
        <paper-item>3</paper-item>
      </paper-listbox>
    </paper-dropdown-menu>
    <paper-dropdown-menu id="dropdown">
      <paper-listbox slot="dropdown-content">
        <paper-item>1</paper-item>
        <paper-item>2</paper-item>
        <paper-item>3</paper-item>
      </paper-listbox>
    </paper-dropdown-menu>
    <paper-button on-tap="buttonTapped">Toggle disabled</paper-button>
  </template>

  <script>
    /**
     * @customElement
     * @polymer
     */
    class DropdownErrorApp extends Polymer.Element {
      static get is() {
        return 'dropdown-error-app';
      }
      static get properties() {
        return {
          prop1: {
            type: String,
            value: 'dropdown-error-app'
          }
        };
      }

      buttonTapped() {
        this.$.dropdown.disabled = !this.$.dropdown.disabled;
      }
    }

    window.customElements.define(DropdownErrorApp.is, DropdownErrorApp);
  </script>
</dom-module>
@antwonthegreat antwonthegreat changed the title after disabling an re-enabling, paper-dropdown-menu is no longer tabbable after disabling and re-enabling, paper-dropdown-menu is no longer tabbable Jul 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant