name property for Dropdown #4009
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
http://plnkr.co/edit/4Ct8Kvb3kkMPyMUlEefe?p=preview
Current behavior
All
select
elements generated withp-dropdown
's have the same value forname
attribute ('options').I believe this is the line that causes this:
https://github.com/primefaces/primeng/blob/master/src/app/components/dropdown/dropdown.ts#L24
Expected behavior
The
select
elements should use the name that was passed into thep-dropdown
Minimal reproduction of the problem with instructions
http://plnkr.co/edit/4Ct8Kvb3kkMPyMUlEefe?p=preview
Click "Log form selects" and you'll see that the select elements all have the same name.
What is the motivation / use case for changing the behavior?
I'm trying to use Prime NG components on a form that is submitted using the default form submit behavior (e.g. action="" and method="" on the form).
Please tell us about your environment:
CentOS, Chrome
Angular version: 4.3.2
PrimeNG version: 4.2.0
Language: [TypeScript]
Node (for AoT issues):
node --version
=The text was updated successfully, but these errors were encountered: