Skip to content

Commit

Permalink
Fixing bug with border type reset
Browse files Browse the repository at this point in the history
  • Loading branch information
rramo012 committed Jun 1, 2018
1 parent d02f9d8 commit ec3ad7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controls/border/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class Border extends MultiSlider {
*/
applySettings( settings ) {
super.applySettings( settings );
this._setType( settings.type );
this._setType( settings.type ).change();
this._toggleWidthControl( settings.type );
this.$target.css( 'border-style', settings.type );
}
Expand All @@ -132,7 +132,7 @@ export class Border extends MultiSlider {
* @return {string} Default border style.
*/
_getDefaultBorderStyle() {
let defaultBorderStyle = '';
let defaultBorderStyle = this._getBorderStyle();

if ( this.options.defaults && this.options.defaults.type ) {
defaultBorderStyle = this.options.defaults.type;
Expand Down

0 comments on commit ec3ad7f

Please sign in to comment.