From fa0f44058e87a467fc5af715e4096a3577f9e339 Mon Sep 17 00:00:00 2001 From: Sunil Pai Date: Tue, 27 Dec 2016 19:06:59 +0530 Subject: [PATCH] fix for placeholder css --- src/index.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index a6adf9f..36519ca 100644 --- a/src/index.js +++ b/src/index.js @@ -312,12 +312,13 @@ function build(dest, { selector = '', mq = '', supp = '', src = {} }) { } Object.keys(_src || {}).forEach(key => { if(isSelector(key)) { - selector = - selector === '::placeholder' ? - '::placeholder, ::-webkit-input-placeholder, ::-moz-placeholder, ::-ms-input-placeholder' - : selector - build(dest, { selector: joinSelectors(selector, key), mq, supp, src: _src[key] }) + let _key = + key === '::placeholder' ? + '::placeholder,::-webkit-input-placeholder,::-moz-placeholder,::-ms-input-placeholder' + : key + + build(dest, { selector: joinSelectors(selector, _key), mq, supp, src: _src[key] }) } else if(isMediaQuery(key)) { build(dest, { selector, mq: joinMediaQueries(mq, key), supp, src: _src[key] })