Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

content: document the correct way to close the parent modal from a child component

オープン
#1,626 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
38/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
angular
領域
documentation

調査の方向性

リンクされているモーダルのドキュメントから始め、componentProps の処理に関連する core/src/components/modal/modal.tsx 周辺を調べてください。子に渡されるモーダルインスタンスが親を閉じるためにサポートされている方法かどうかを確認し、そのうえで安定した使用方法をドキュメント化し、関連するモーダルガイダンスからリンクしてください。

索引モデルが issue の本文から書いたものです。

説明

content

Bug Report

Ionic version:

[x] 4.5

Current behavior:

this.modalCtrl.dismiss closes a modal instance most recently opened, not a parent one ( https://github.com/ionic-team/ionic/tree/v4.5.0/core/src/components/modal#dismissing-a-modal )

and we found the modal instance is passed in addition to componentProps

It seems that using modal instance passed through @Input or NavParams is correct way to close the parent modal.

Is this behavior stable?

Expected behavior:

If it is, this behavior should be documented.

Other information:

related StackOverflow question

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.12.0
   Ionic Framework               : @ionic/angular 4.4.2
   @angular-devkit/build-angular : 0.13.6
   @angular-devkit/schematics    : 7.3.6
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.4.1

Cordova:

   cordova (Cordova CLI) : 8.1.2 ([email protected])
   Cordova Platforms     : android 8.0.0, browser 6.0.0, ios 5.0.1
   Cordova Plugins       : cordova-plugin-ionic 5.3.0, cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.5.0, (and 22 other plugins)

System:

   Android SDK Tools : 26.1.1 (/Users/buko106/Library/Android/sdk)
   ios-deploy        : 1.9.4
   ios-sim           : 8.0.1
   NodeJS            : v10.16.0 (/Users/buko106/.anyenv/envs/nodenv/versions/10.16.0/bin/node)
   npm               : 6.9.0
   OS                : macOS Mojave
   Xcode             : Xcode 10.2.1 Build version 10E1001
主要言語
MDX
スター
621
フォーク
3.2k
平均マージ
1日 6時間
マージ済み PR(30日)
65

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/ionic-docs のほかの issue

ionic-team/ionic-docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。