extnet / Ext.NET

35 stars 41 forks source link

ColorPicker within a DropdownField doesn't fire the Select event in Safari #1868

Open fabriciomurta opened 2 years ago

fabriciomurta commented 2 years ago

Found: 5.3.0 Ext.NET forums' thread: DropDownField with ColorPicker not work in Safari

Using macos' Safari browser, if a color picker component (<ext:ColorPicker />) is defined within a Dropdown field's container/panel, the former's Select event won't trigger on click, but the dropdown gets dismissed (a tap event does trigger) thus becoming impossible to make a selection from the dropdown field.

Using the advanced color picker's <ext:ColorField /> (outside a dropdown field) works fine and may be an acceptable replacement for the simpler component.

fabriciomurta commented 2 years ago

Adding ClickEvent="tap" to the colorpicker within dropdownfield made it so selection is triggered on windows (google chrome) and mac (safari) browsers. So perhaps we should change the default depending on the browser (user agent). This may also trigger by mobile browsers.