Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the concept of data-value #65

Closed
blackfalcon opened this issue Jan 13, 2022 · 1 comment · Fixed by #80
Closed

the concept of data-value #65

blackfalcon opened this issue Jan 13, 2022 · 1 comment · Fixed by #80
Assignees
Labels

Comments

@blackfalcon
Copy link
Member

With a traditional combo box select menu the option element has a value attr,

<option value="volvo">Volvo</option>

I'd like to revisit this data-value feature and see if we can refactor this to be more like a native element.

handleSlotChange() {
const dispatchEventOptionSelected = (indexValue, dataValue, displayText) => {
this.dispatchEvent(new CustomEvent('optionSelected', {
bubbles: true,
cancelable: false,
composed: true,
detail: {
index: indexValue,
value: dataValue,
displayText,
}
}));

@blackfalcon blackfalcon added this to the auro-menu v3.0-rc milestone Jan 13, 2022
@blackfalcon blackfalcon self-assigned this Jan 13, 2022
@blackfalcon blackfalcon added the Status: Work In Progress Issue or Pull Request work is in Progress label Jan 21, 2022
blackfalcon added a commit that referenced this issue Jan 28, 2022
Changes to be committed:
modified:   docs/api.md
modified:   src/auro-menu.js
modified:   src/auro-menuoption.js
modified:   test/auro-menu.test.js
blackfalcon added a commit that referenced this issue Jan 28, 2022
Changes to be committed:
modified:   demo/demo.md
modified:   demo/partials/default.html
modified:   demo/partials/disabled.html
modified:   demo/partials/hr.html
modified:   demo/partials/preselect.html
modified:   demo/partials/restrictedWidth.html
blackfalcon added a commit that referenced this issue Jan 28, 2022
Changes to be committed:
modified:   docs/api.md
modified:   src/auro-menu.js
modified:   src/auro-menuoption.js
modified:   test/auro-menu.test.js
blackfalcon added a commit that referenced this issue Jan 28, 2022
Changes to be committed:
modified:   demo/demo.md
modified:   demo/partials/default.html
modified:   demo/partials/disabled.html
modified:   demo/partials/hr.html
modified:   demo/partials/preselect.html
modified:   demo/partials/restrictedWidth.html
@blackfalcon blackfalcon linked a pull request Jan 28, 2022 that will close this issue
6 tasks
@blackfalcon blackfalcon added Type: Feature New Feature and removed Status: Work In Progress Issue or Pull Request work is in Progress labels Jan 28, 2022
blackfalcon added a commit that referenced this issue Jan 29, 2022
Changes to be committed:
modified:   docs/api.md
modified:   src/auro-menu.js
modified:   src/auro-menuoption.js
modified:   test/auro-menu.test.js
blackfalcon added a commit that referenced this issue Jan 29, 2022
Changes to be committed:
modified:   demo/demo.md
modified:   demo/partials/default.html
modified:   demo/partials/disabled.html
modified:   demo/partials/hr.html
modified:   demo/partials/preselect.html
modified:   demo/partials/restrictedWidth.html
blackfalcon added a commit that referenced this issue Jan 31, 2022
Changes to be committed:
modified:   docs/api.md
modified:   src/auro-menu.js
modified:   src/auro-menuoption.js
modified:   test/auro-menu.test.js
blackfalcon added a commit that referenced this issue Jan 31, 2022
Changes to be committed:
modified:   demo/demo.md
modified:   demo/partials/default.html
modified:   demo/partials/disabled.html
modified:   demo/partials/hr.html
modified:   demo/partials/preselect.html
modified:   demo/partials/restrictedWidth.html
@blackfalcon blackfalcon linked a pull request Feb 2, 2022 that will close this issue
6 tasks
@blackfalcon blackfalcon added Status: Work In Progress Issue or Pull Request work is in Progress and removed Status: Work In Progress Issue or Pull Request work is in Progress labels Feb 2, 2022
@blackfalcon
Copy link
Member Author

Oops my bad... this work is completed and merged in with #80

@blackfalcon blackfalcon removed a link to a pull request Feb 3, 2022
6 tasks
blackfalcon added a commit that referenced this issue Mar 1, 2022
Changes to be committed:
modified:   docs/api.md
modified:   src/auro-menu.js
modified:   src/auro-menuoption.js
modified:   test/auro-menu.test.js
blackfalcon added a commit that referenced this issue Mar 1, 2022
Changes to be committed:
modified:   demo/demo.md
modified:   demo/partials/default.html
modified:   demo/partials/disabled.html
modified:   demo/partials/hr.html
modified:   demo/partials/preselect.html
modified:   demo/partials/restrictedWidth.html
blackfalcon added a commit that referenced this issue Mar 1, 2022
Changes to be committed:
modified:   docs/api.md
modified:   src/auro-menu.js
modified:   src/auro-menuoption.js
modified:   test/auro-menu.test.js
blackfalcon added a commit that referenced this issue Mar 1, 2022
Changes to be committed:
modified:   demo/demo.md
modified:   demo/partials/default.html
modified:   demo/partials/disabled.html
modified:   demo/partials/hr.html
modified:   demo/partials/preselect.html
modified:   demo/partials/restrictedWidth.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants