Improved wrap condition, button caching and added automatic setting z-index property #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The condition to wrap a target elements was changed. Now if parent container is not relatively positioned, the element wrapping and console output a warning message. Otherwise adding custom class to the parent container.
The next change involves caching inserted button. This DOM navigation eliminating required element that should be after target input, e.g. labels.
Furthermore, there was auto setting z-index property to button same as target element for normal availability