onDrop event is not working on ResponsiveReactGridLayout - drag-and-drop

I'm new to react-grid-layout, the problem is that the layoutItem parameter is coming as undefined. I didn't understand why.
enter image problem here
To know more about the project I have created a sample example with drag and drop. I have created a sandbox.
enter link sandbox here

Related

all widgets in my app doesn't showing when I enter the app the seconde time

I dont know how exactly describe my problem ,my app works well
it show like this and works fine
but when I enter to it in the second time it show like this
!
enter image description here
and it's still working, its just not showing things as it should
I'm using getx as state management and I'm using it to change theme(dark,light) and the language(english,Arabic)
I dont know even what causes the issue so please help me with any think
I try to change the default language and theme and it's the same issue
when I face the issue I press the back button to be out of the app and I enter the app again( without removing it from background) it work and everything fine

UNITY/Vuforia Question: Click Button Take Screenshot Save to Gallery iOS/Android

Complete coding newbie trying to do this.
I created a button in my scene and I need to now find a C# script that will allow me to call OnClick --> take screenshot --> save it to gallery in iOS/Android. I've been looking all over the Internet and I've seen bits and pieces of how to do this, but nothing complete.
I found this: https://github.com/yasirkula/UnityNativeGallery
but utterly confused about what code I need so that I can drag it onto the button. Please help. Thank you!

How to remove state from bootstrap tour

I'm using bootstrap tour, and everything is working fine.
What i'd like to do now, is create a "dismiss for now" button, that should display the tour next time the page is loaded.
In the local storage, when the tour ends, it creates a key called "tour_end" and the value is "yes", so, what i'm trying to do, is to call this:
tour.removeState("tour_end")
so that hopefully, next time the page is loaded, the key is missing and the tour will show up.
Unfortunately, the previous doesn't work, and it returns with this error:
_this.tour.removeState is not a function
any suggestion why this is not working? or the best way to achieve the "dismiss for now" behave?
Thanks a lot
Edit -
I solved this adding localStorage.removeItem("tour_end"); and it seams to work as expected.

File Upload not working after moving form field

I have a large form with a image upload field working ok.
Field is defined in model as:
$this->add('filestore/Field_Image','thumbnail_id');
Then I created two tabs inside form:
$tabs=$form->add('Tabs');
$main=$tabs->addTab('General');
$design=$tabs->addTab('Design');
And moved image field to design tab:
$design->add($form->getElement('thumbnail_id'));
Now I can't upload files. When I try I get the following javascript error
Error: cannot call methods on atk4_form prior to initialization; attempted to call method 'submitPlain
Is there any other way to move the field or have upload working again after moving it?
I was trying to use the same method ($design->add($form->getElement('my_element'));) to move a slider into another place on the page. That didn't work - I think it was because the slider input field is not placed on the page the same way as other input fields.
So I tried with the jQuery appendTo-method (I found the hint in a comment from romanish in a documentation page). That worked. But then I experienced the same problem as you - and in the end I gave up and solved the problem by editing the slider-class page.
So I can't help you, sorry, but I guess this points out that there is a general problem related to getting input from moved form elements.

Creating new action for preview of Aggregation not working

My app's Opengraph location is
https://developers.facebook.com/apps/141573619260829/opengraph
I can't create a new action on preview of Aggregation.
Details-
I can't submit my action "add".It says No Aggregations created for this Action Type but i have already created a Aggregation for add but when previewing I'm having a problem.I clicked "Add New" under Preview Actions: sector & I filled spaces with data & clicked create but it says Oops Something is wrong(when i filled with wrong data it displays the problem but when i filled all correctly it this plays Oops Something is wrong. Is this a know bug? please help me to solve this..