Skip to content

select: Should <selectedoption> respond to mutations in the selected <option> #825

@josepharhar

Description

@josepharhar

Consider the following:

<selectlist>
  <button>
    <selectedoption></selectedoption>
  </button>
  <option>foo</option>
</selectlist>
<script>
requestAnimationFrame(() => {
  document.querySelector('option').textContent = 'bar';
});
</script>

Should the <selectedoption>'s contents set to "bar", or should it stay as "foo"?
The equivalent use case for <select> will change the button's text to "bar".

@argyleink @mfreed7

We should probably wait for #571 to be resolved before getting this 100% figured out.

Metadata

Metadata

Assignees

Labels

agenda+Use this label if you'd like the topic to be added to the meeting agendaneeds editsThis is ready for edits to be madeselectThese are issues that relate to the select component

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions