-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Inline display does not allow using altField option #87
Comments
Thanks for reporting. Feel free to do a pull request. |
@samdark sure, but i havent contributed before in any of Yii's repo, are there any guidelines to follow ? |
@samdark what i understand is that i have to fork and clone the main Sorry to bug you about this. |
Yes, you are right. Yii2 repo first. |
Any luck with the pull request? |
@samdark forgot totally as i was busy lately, just going to push the code can you tell if the |
Merging is blocked as expected since we need to check the pull request first. |
@samdark alright, and dont you think a test for the |
Yes, sure it should. |
What steps will reproduce the problem?
Create a datepicker with the following options where you use
inline
option along with thealtField
optionand create an active field using
yii\helpers\Html
orActiveForm
to be used as an actual form field to be submitted along with the datepicker value when form is submitted.What's expected?
i expect the field to be populated with the date value selected from the datepicker
What do you get instead?
nothing happens and the field stays blank
The reason behind is that for
inline
display you have the following code on line 201 inrenderWidget()
functionwhich overrides the custom defined
altField
.you can change that line to something like below which will work for both cases
altField
.Additional info
The text was updated successfully, but these errors were encountered: