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 value of MFXDatePicker that is set before display will not be displayed correctly #172

Closed
Glavo opened this issue Apr 7, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Glavo
Copy link
Contributor

Glavo commented Apr 7, 2022

var picker = new MFXDatePicker();
picker.setValue(LocalDate.now());

// ... Add picker to the window

In this case MFXDatePicker does not display the date text correctly.

The reason for this is that the logic associated with the text and value of the MFXDatePicker is located in the constructor of the MFXDatePickerSkin, so setting the value before creating the skin will not update the text content correctly.

@palexdev palexdev added the bug Something isn't working label Apr 9, 2022
palexdev added a commit that referenced this issue Apr 11, 2022
Controls Package
:bug: MFXTextField: fixed TextFormatter not working. It must be added on the BoundTextField, for this reason, added a delegate property (Fix for #174)

CSS Package
:recycle: MFXCSSBridge: do not take into account the Region's user agent stylesheet. If it's needed to specify the user agent the popup's getUserAgentStylesheet() method should be overridden inline, as well as for any other component that mey require it (see MFXComboBoxSkin as an example) (Fix for #173)

Selection Package
:recycle: Adds a method to retrieve the selection values as a List (rather than getSelection().values() which returns a generic Collection). Also make MultipleSelectionManager use LinkedHashSet and LinkedHashMap (TreeMap was used, oversight sorry) to keep insertion order for selection, this also ensures that building the values List returns the selected values in the same exact order as in the selection Map (Enhancement for #161)

Skins Package
:bug: MFXComboBoxSkin, MFXFilterComboBoxSkin: fixed an issue that prevented the combo box's popup from being fully customizable with CSS (Fix for #173)
:bug: MFXDatePickerSkin: initialize the picker's text if the initial date is not null (Fix for #172)

Signed-off-by: palexdev <alessandro.parisi406@gmail.com>
@palexdev
Copy link
Owner

Fixed in version 11.13.5, easy fix an updateValue(...) call was needed during initialization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants