Commit ecd98b9 1 parent 00d3bd4 commit ecd98b9 Copy full SHA for ecd98b9
File tree 4 files changed +6
-34
lines changed
4 files changed +6
-34
lines changed Original file line number Diff line number Diff line change 27
27
- Cornerstone - Image Zoom Does Not Work on Internet Explorer. [ #1923 ] ( https://github.com/bigcommerce/cornerstone/pull/1923 )
28
28
- Fixed input placeholder color contrast according to AA standard. [ #1933 ] ( https://github.com/bigcommerce/cornerstone/pull/1933 )
29
29
- Bump stencil utils to 6.8.0. [ #1945 ] ( https://github.com/bigcommerce/cornerstone/pull/1945 )
30
+ - Bump stencil utils to 6.8.1. and removed changes from #1910 [ #1945 ] ( https://github.com/bigcommerce/cornerstone/pull/1945 )
30
31
31
32
## 5.0.0 (12-14-2020)
32
33
- Parse HTML entities in jsContext. [ #1917 ] ( https://github.com/bigcommerce/cornerstone/pull/1917 )
Original file line number Diff line number Diff line change @@ -132,37 +132,8 @@ export default class Search extends CatalogPage {
132
132
$ ( $tabsCollection . get ( nextTabIdx ) ) . focus ( ) . trigger ( 'click' ) ;
133
133
}
134
134
135
- getUrlParameter ( queryParam ) {
136
- const regex = new RegExp ( `[\\?&]${ queryParam } =([^&#]*)` ) ;
137
- const results = regex . exec ( window . location . search ) ;
138
- return results === null ? '' : decodeURIComponent ( results [ 1 ] . replace ( / \+ / g, ' ' ) ) ;
139
- }
140
-
141
- setupSortByQuerySearchParam ( ) {
142
- const searchQuery = this . getUrlParameter ( 'search_query' ) ;
143
-
144
- if ( searchQuery . length === 0 ) return ;
145
-
146
- const $baseInput = $ ( '<input/>' ) . attr ( 'type' , 'hidden' ) ;
147
-
148
- $ ( '[data-sort-by]' ) . each ( ( idx , form ) => {
149
- const $form = $ ( form ) ;
150
- $form . append (
151
- $baseInput . clone ( ) . attr ( {
152
- name : 'search_query' ,
153
- value : searchQuery ,
154
- } ) ,
155
- $baseInput . clone ( ) . attr ( {
156
- name : 'section' ,
157
- value : $form . data ( 'sort-by' ) ,
158
- } ) ,
159
- ) ;
160
- } ) ;
161
- }
162
-
163
135
onReady ( ) {
164
136
compareProducts ( this . context . urls ) ;
165
- this . setupSortByQuerySearchParam ( ) ;
166
137
167
138
const $searchForm = $ ( '[data-advanced-search-form]' ) ;
168
139
const $categoryTreeContainer = $searchForm . find ( '[data-search-category-tree]' ) ;
Original file line number Diff line number Diff line change 6
6
"author" : " BigCommerce" ,
7
7
"license" : " MIT" ,
8
8
"dependencies" : {
9
- "@bigcommerce/stencil-utils" : " ^6.8.0 " ,
9
+ "@bigcommerce/stencil-utils" : " ^6.8.1 " ,
10
10
"core-js" : " ^3.6.5" ,
11
11
"creditcards" : " ^3.0.1" ,
12
12
"easyzoom" : " ^2.5.3" ,
You can’t perform that action at this time.
0 commit comments