From c4fe2fffbd0499e5efb357a6525d8e3dac2ef498 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Wed, 6 Nov 2019 10:34:02 -0800 Subject: [PATCH] remove outline from dropdown --- control/src/select25.scss | 1 + dist/select25.css | 3 ++- dist/select25.js | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/control/src/select25.scss b/control/src/select25.scss index 051ba807..255ca57b 100644 --- a/control/src/select25.scss +++ b/control/src/select25.scss @@ -209,6 +209,7 @@ $dropdown-padding: 8px 10px; border-top: $border; border-radius: 0 0 $border-radius $border-radius; background-color: rgb(255, 255, 255); + outline: 0; .s25-body { padding-top: 4px; diff --git a/dist/select25.css b/dist/select25.css index 8a755231..d3de51e1 100644 --- a/dist/select25.css +++ b/dist/select25.css @@ -144,7 +144,8 @@ border: 1px solid #4d90fe; border-top: 1px solid #ddd; border-radius: 0 0 5px 5px; - background-color: white; } + background-color: white; + outline: 0; } .s25-dropdown .s25-body { padding-top: 4px; padding-bottom: 4px; } diff --git a/dist/select25.js b/dist/select25.js index 7dba4d3b..81689bde 100644 --- a/dist/select25.js +++ b/dist/select25.js @@ -19,9 +19,9 @@ * Version: 5.0.0-snapshot * Dependencies: * - * preact -- 10.0.0-beta.3 - * * tslib -- 1.9.3 + * + * preact -- 10.0.0-beta.3 */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).select25={})}(this,function(e){"use strict";var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var D=function(){return(D=Object.assign||function(e){for(var t,n=1,o=arguments.length;na[0]&&t[1]=o),p=c?W():void 0,d=f;f.updateState([e,{loading:c,results:{active:-1,page:0,results:void 0,showLoadMoreResults:!1,showMinimumCharactersError:!c,showNoSearchResultsFound:!1,token:p},search:r}],function(){if(t&&t(),c){var e=function(){return h(f,void 0,void 0,function(){var t,n,o;return v(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,u(r,0,p)];case 1:return(t=e.sent()).token!==d.state.results.token?[2]:(n=t.values||[],!i&&0=l.top&&u.bottom>l.bottom&&(c=u.bottom-l.bottom,s.scrollTop=s.scrollTop+c)}}},pe);function pe(e){var n=ue.call(this,e)||this;return n.onResultClicked=function(t){return function(e){n.props.onResultClicked(t,e)}},n.onMouseMove=function(t){return function(e){n.lastMouseClientX===e.clientX&&n.lastMouseClientY===e.clientY||(n.lastMouseClientX=e.clientX,n.lastMouseClientY=e.clientY,n.props.onMouseMove(t,e))}},n.onScroll=function(){if(n.props.showLoadMoreResults){var e=n.loadMore.current;"hidden"!==function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return o.bottomn.bottom?"hidden":o.top=n.top&&o.bottom>n.bottom?"partial-bottom":"visible"}(n.container.current,e)&&n.props.onLoadMore()}},n.container={},n.loadMore={},n}var de,fe=B({},G,{values:[]}),he=(t(ve,de=$),ve.prototype.componentWillMount=function(){m()},ve.prototype.render=function(e,t){var n,o,u=this,r=e.values,s=e.tabIndex,a=e.minimumCharacters,i=e.valuesLabel,l=e.comboboxLabel,c=e.placeholder,p=t.open,d=t.loading,f=t.focused,h=t.search,v=t.values,m=v.active,g=v.selected,y=t.results,_=this.dictionary,b=!r||0===r.length,w=K(ie.control,ie.multi,((n={})[ie.open]=p,n),((o={})[ie.focused]=f,o));e.containerClass&&0