[Custom Components] Multiple component schema info showing more than one component rather than allowing an array of values to be captured.

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
angular, typescript
領域
frontend

調査の方向性

カスタムコンポーネントの登録とその JSON スキーマから始め、次に multiple を有効にした select コンポーネントを再現します。スキーマの multiple オプションがレンダリングと値の検証にどのような影響を与えるかを確認します。選択された値が複数のコンポーネントインスタンスをレンダリングせずに 1 つの配列として取得されれば完了です。

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

説明

question scope: community scope: custom components

Hello ,
The "multiple":true is acting like I wanted multiple of that component in one space rather than If this component should allow an array of values to be captured.

Wanting to make a custom multiple select component , When I add in the "multiple":true into the object for the component it gets rendered out as :
image
Yet without it I am getting an error that says the component can not be an array:
image
In the custom component I have the the multiple option in select set to true , so the component returns the items selected as an array.

This is the custom component I am calling :
Json part :
image
Registering it :
image
Note: the comment out schema acts like the "multiple":true, in the Json.

I believe I left something out in registering it but I can not figure out what. I say that because the same behavior is seen when the "multiple":true is added to other components that normally do not return an array.

主要言語
TypeScript
スター
706
フォーク
493
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

formio/angular のほかの issue

formio/angular の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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