preview optimization (#1573)

Co-authored-by: Rishabh Shukla <42492389+blurry-x-face@users.noreply.github.com>
Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
This commit is contained in:
keshav234156
2020-01-29 21:18:23 +05:30
committed by GitHub
parent 28cedd72a6
commit 5f745ef4bd
3 changed files with 11 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ function generatePreview(previewStepName, customValues, path, DomNode) {
$(img).css('transform', 'translateX(-20%)');
$(DomNode.querySelector('.radio-group')).find('.radio').each(function() {
if ($(this).attr('data-value') === previewStepName) {
$(this).find('img').remove();
$(this).append(img);
}
});