0

我使用紙質對話框類似以下內容:聚合物紙對話框鐵覆蓋封閉不工作

<link rel="import" href="../bower_components/polymer/polymer.html"> 
<link rel="import" href="../bower_components/app-layout/app-layout.html"> 
<link rel="import" href="../bower_components/iron-icons/iron-icons.html"> 
<link rel="import" href="../bower_components/paper-icon-button/paper-icon-button.html"> 
<link rel="import" href="../bower_components/paper-button/paper-button.html"> 
<link rel="import" href="../bower_components/paper-dialog/paper-dialog.html"> 
<link rel="import" href="../bower_components/paper-input/paper-input.html"> 
<link rel="import" href="../bower_components/paper-card/paper-card.html"> 
<link rel="import" href="../bower_components/paper-item/paper-item.html"> 
<link rel="import" href="../bower_components/paper-checkbox/paper-checkbox.html"> 
<link rel="import" href="../bower_components/paper-item/paper-item-body.html"> 
<link rel="import" href="../bower_components/platinum-sw/platinum-sw-elements.html"> 
<link rel="import" href="../bower_components/paper-dialog-behavior/paper-dialog-behavior.html"> 
<link rel="import" href="../bower_components/iron-overlay-behavior/iron-overlay-behavior.html"> 

<paper-dialog id="addNoteDialog" iron-overlay-closed="test" iron-overlay-opened="test"> 
    <h2>Add a new note</h2> 
    <paper-input autofocus required="true" id="title" label="Title of your note"></paper-input> 
    <paper-input id="note" label="Enter your note"></paper-input> 
    <div class="buttons"> 
    <paper-button dialog-dismiss>Cancel</paper-button> 
    <paper-button dialog-confirm>Accept</paper-button> 
    </div> 
</paper-dialog> 

但是功能test永遠不會得到執行......難道我忘了進口或東西我犯了一個錯誤?

回答

0

我正在使用iron-overlay-closed,它必須是on-iron-overlay-closed