Open girishcp opened 4 years ago
@buttflattery did you get a chance to look into this issue.
@girishcp not yet, i am on vacations currently cant reach to my pc have you matched your code with the demos available here https://yii2plugins.omaraslam.com/formwizard/tabular-step you can see the select2 working , but if everything matches with the code there i would have to look into it again once i come back tomorrow evening
Sorry to disturb you in your holiday. Please enjoy your vacation and take care of yourself.
On Sat, 12 Sep, 2020, 11:25 pm Coackroach, notifications@github.com wrote:
@girishcp https://github.com/girishcp not yet, i am on vacations currently cat reach to my pc have you matched your code with the demos available here https://yii2plugins.omaraslam.com/formwizard/tabular-step you can see the select2 working , but if everything matches with the code there i would have to look into it again once i come back tomorrow evening
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/buttflattery/yii2-formwizard/issues/79#issuecomment-691524277, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTC4ONCRQEZ6JU4JD6ZKCTSFOYYNANCNFSM4RHKTW3A .
@girishcp i will look into it as soon i come back , but i think this was due to a recent update to add missing default options support for the active field , just rty to switch your version in the composer.json
to the the following
"buttflattery/yii2-formwizard": "dev-master#7b7942f5555d528cd46c5dbc55de71b076bcfca5",
and run
composer update
and then verify if it works ? i doubt that it will as i allowed to pass all options to the active field and i need to reset any custom option name like tabularEvents
when passing on to the active field options, if you can add a fix for it that will be good otherwise you can switch to the above mentioned commit and continue without error , but you wont be able to set all options for the activeField that are added in the latest commit
@buttflattery I have updated the formwizard as suggested but it also starts showing the tabs but having an issue with the add new in the tab. its not showing the select2 dropdown list as you can see in the below screenshot.
@buttflattery I have updated with the old version "Release V1.6.17" and it start working.
@girishcp alrigth i will fix it up soon and will update you.
@buttflattery Thank you so much.
@girishcp please pull the latest code by running composer update
, should be working correctly now. If everything goes fine you can close the issue
@buttflattery Thanks for working on this issue, the issue has been resolved now but found more issue on this widget after the update.
When I am adding one more items in the "STEP_TYPE_TABULAR" form then it's adding the 2 items in one go and when am trying to delete the blank item then it deleting the existing top one.
The delete (cross button) option also stops working.
The same issue with the SELECT2 field, its also stops working.
hmm strange i tested it though, can you share the exact code you are using? is it the same one above?
@buttflattery yes, I am using the same code as above, this is a problem with all the versions. When we click on the add button to add one more item in our tab then its adding 2 items by default.
@girishcp alright i am looking into it and will push the fix soon
@buttflattery It's been a long time didn't hear anything from you, I hope everything is fine at your end. Did you get time to fix the issue?
@girishcp , you have to change this code
let selectElement = $(this).find('.field-shoottag-'+params.rowIndex+'-tag_id > select');
to
let selectElement = $(this).find('.field-{your_model_class_name}-'+params.rowIndex+'-{your_field_name} > select');
hope this help.
@ZulfikriLbs thanks for this update, do I need to update this code in the latest version of formwidget.
@girishcp maybe best to use the latest version of formwidget, but i think it's not necessary.
@ZulfikriLbs Thank you, actually, I am asking these questions because I have raised several issues on this widget.
@girishcp sorry for the delays , i havent been able to give time to my personal projects due to the workload currently and still i am not free from the project. I will be getting free in the next week and will start fixing all the issues on the widget.
@buttflattery
My widget is working fine but when i am using select2 with the tabularEvents in the "STEP_TYPE_TABULAR" then getting the following error.
Setting unknown property: yii\bootstrap\ActiveField::tabularEvents
here its my code...