Vue-material: [MdAutocomplete] displayed behind the dialog

Created on 21 Jul 2018  路  2Comments  路  Source: vuematerial/vue-material

image

I have checked previous bug. md-select has been fixed. if I use md- autocomplete I still get the same problem.
How to work it around? thanks

Most helpful comment

This still happens for me.

Screen Shot 2019-06-11 at 4 45 19 PM

My markup:

<template>
  <div>
    <md-dialog :md-active.sync="showAddMembersDialog">
      <md-dialog-title>Add members</md-dialog-title>

      <md-content class="dialog-contents">
        <md-autocomplete class="autocomplete" value="user" v-model="query" :md-options="searchUsers()"
                         @md-opened="addUser()">
          <label>Search</label>

          <template slot="md-autocomplete-item" slot-scope="{ item }">{{ item.username }}</template>
        </md-autocomplete>
      </md-content>

      <md-dialog-actions>
        <md-button class="md-primary" @click="setShowAddMembersDialog(false)">Close</md-button>
        <md-button class="md-primary" @click="setShowAddMembersDialog(false)">Save</md-button>
      </md-dialog-actions>
    </md-dialog>
  </div>
</template>

Version ^1.0.0-beta-11

All 2 comments

This should be fixed because code for autocomplete is same but you can use this workaround: https://github.com/vuematerial/vue-material/issues/1149

This still happens for me.

Screen Shot 2019-06-11 at 4 45 19 PM

My markup:

<template>
  <div>
    <md-dialog :md-active.sync="showAddMembersDialog">
      <md-dialog-title>Add members</md-dialog-title>

      <md-content class="dialog-contents">
        <md-autocomplete class="autocomplete" value="user" v-model="query" :md-options="searchUsers()"
                         @md-opened="addUser()">
          <label>Search</label>

          <template slot="md-autocomplete-item" slot-scope="{ item }">{{ item.username }}</template>
        </md-autocomplete>
      </md-content>

      <md-dialog-actions>
        <md-button class="md-primary" @click="setShowAddMembersDialog(false)">Close</md-button>
        <md-button class="md-primary" @click="setShowAddMembersDialog(false)">Save</md-button>
      </md-dialog-actions>
    </md-dialog>
  </div>
</template>

Version ^1.0.0-beta-11

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Feduch picture Feduch  路  3Comments

jtouzy picture jtouzy  路  3Comments

maryleloisa picture maryleloisa  路  3Comments

delueg picture delueg  路  3Comments

philipfeldmann picture philipfeldmann  路  3Comments