You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to click the arrow icon to close combobox when dropdown appears #1693
By coincidence an issue for this was opened for this just the other day in the fluent repo. There is also already a PR open to fix it in the FAST repo.
I'll ask what the schedule is to get it merged and then pullen into the web components script.
The fluent-combobox template is using the onclick event so this PR (workaround) could register a click event on the dropdown indicator of that template and use a small delay to let the 'fluent-combobox' do it's thing before attempting to close the list.
This could be a solution, but I don't like the fact that you have to remove the open attribute and use a timer?
Deleting a component element is always a risk with regard to its internal operation.
Using a timer to activate or engage an event can cause problems on other environments (WASM, browsers, MAUI).
In my opinion, this could be used, but only by adding an AllowClickOnClose attribute (or something like that).
Ahhh...we need to be careful about altering the DOM. I posted a possible fix in the fluentui project microsoft/fluentui#30693 if you want to have a look. In the meantime I'll handle the workaround in my local projects.
Thanks. I'm just now getting familiar the versioning of web technologies and how this all works. I'll do a PR if you think others would want this option.
Activity
vnbaaij commentedon Mar 14, 2024
By coincidence an issue for this was opened for this just the other day in the fluent repo. There is also already a PR open to fix it in the FAST repo.
I'll ask what the schedule is to get it merged and then pullen into the web components script.
adamint commentedon Mar 14, 2024
Oh that’s funny 😄 thanks, Vincent!
joriverm commentedon Mar 15, 2024
ah ye, i noticed this too but saw it was in the webcomponents itself so i didn't report it here 😄
chrisdholt commentedon Apr 24, 2024
Coming soon - dependent PR for the stable release of Fluent: microsoft/fast#6942
joriverm commentedon Jun 21, 2024
Chris Holt (@chrisdholt) : its been nearly 2 months. are there any updates on the webcomponents update?
hml-coder commentedon Jan 12, 2025
Vincent Baaij (@vnbaaij) Denis Voituron (@dvoituron) Would you accept a PR similar to what's below for this issue since microsoft/fluentui/issues/30693 had a soft close in Sept. 2024?
The
fluent-comboboxtemplate is using theonclick eventso this PR (workaround) could register aclick eventon the dropdown indicator of that template and use a small delay to let the 'fluent-combobox' do it's thing before attempting to close the list.FluentCombobox.razor.cs
FluentCombobox.razor.js
dvoituron commentedon Jan 12, 2025
This could be a solution, but I don't like the fact that you have to remove the
openattribute and use a timer?Deleting a component element is always a risk with regard to its internal operation.
Using a timer to activate or engage an event can cause problems on other environments (WASM, browsers, MAUI).
In my opinion, this could be used, but only by adding an
AllowClickOnCloseattribute (or something like that).hml-coder commentedon Jan 12, 2025
Ahhh...we need to be careful about altering the DOM. I posted a possible fix in the fluentui project microsoft/fluentui#30693 if you want to have a look. In the meantime I'll handle the workaround in my local projects.
vnbaaij commentedon Jan 12, 2025
I don't think there will be a new version of the web components v2 anytime soon.
As Denis Voituron (@dvoituron) said, we can do it on our side but we just need to make it 'opt-in'
hml-coder commentedon Jan 12, 2025
Thanks. I'm just now getting familiar the versioning of web technologies and how this all works. I'll do a PR if you think others would want this option.
AllowClickOnClose
AllowCloseWithClick
Any other suggestions?
vnbaaij commentedon Jan 13, 2025
EnableClickToClose?hml-coder commentedon Jan 13, 2025
Looking to get your thoughts on this approach.
Updated the JavaScript to dispatch an
EscapekeyKeyboardEventdirectly to thefluent-combobox, without using timers or altering the DOM structure.dvoituron commentedon Jan 13, 2025
That sounds better to me
hml-coder commentedon Jan 16, 2025
Fixed in FluentCombobox with #3186