adopted-ember-addons / adopted-ember-addons/ember-paper

Using wrapped components in a form

Đang mở
#704 7 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
879
Fork
327
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I'm trying to wrap a paper component such as paper-autocomplete in my own component and then use it in a form. It works except for setting the form isValid. I tried passing the form to my component, but that throws errors.

This is what I got working:

form:
```
{{#paper-form onSubmit=saveAction as |form|}}
{{user-select ...}}
{{/paper-form}}
```

user-select:
```
{{#paper-autocomplete ...}}
{{paper-autocomplete-highlight ...}}
{{/paper-autocomplete}}
```

This throws errors:

form:
```
{{#paper-form onSubmit=saveAction as |form|}}
{{user-select form=form ...}}
{{/paper-form}}
```

user-select:
```
{{#form.autocomplete ...}}
{{paper-autocomplete-highlight ...}}
{{/form.autocomplete}}
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.