File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -147,17 +147,9 @@ export class QLSearch extends AKElement {
147
147
// Mostly static variables for padding, font line-height and how many
148
148
const lineHeight = parseInt ( window . getComputedStyle ( this . searchElement ) . lineHeight , 10 ) ;
149
149
const paddingTop = parseInt ( window . getComputedStyle ( this . searchElement ) . paddingTop , 10 ) ;
150
- const paddingBottom = parseInt (
151
- window . getComputedStyle ( this . searchElement ) . paddingBottom ,
152
- 10 ,
153
- ) ;
154
150
const paddingLeft = parseInt ( window . getComputedStyle ( this . searchElement ) . paddingLeft , 10 ) ;
155
151
const paddingRight = parseInt ( window . getComputedStyle ( this . searchElement ) . paddingRight , 10 ) ;
156
152
const actualInnerWidth = bcr . width - paddingLeft - paddingRight ;
157
- const lettersPerLine = Math . floor ( actualInnerWidth / letterWidth ) ;
158
-
159
- const col = ( this . searchElement . selectionStart % lettersPerLine ) + 1 ;
160
- const line = Math . floor ( this . searchElement . selectionStart / lettersPerLine ) + 1 ;
161
153
162
154
let relX = 0 ;
163
155
let relY = 1 ;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export class TableSearch extends WithLicenseSummary(AKElement) {
79
79
render ( ) : TemplateResult {
80
80
return html `< form
81
81
class ="pf-c-input-group "
82
- method ="GET "
82
+ method ="get "
83
83
@submit =${ ( e : Event ) => {
84
84
e . preventDefault ( ) ;
85
85
if ( ! this . onSearch ) return ;
@@ -97,6 +97,7 @@ export class TableSearch extends WithLicenseSummary(AKElement) {
97
97
type ="reset "
98
98
@click =${ ( ) => {
99
99
if ( ! this . onSearch ) return ;
100
+ this . value = "" ;
100
101
this . onSearch ( "" ) ;
101
102
} }
102
103
>
You can’t perform that action at this time.
0 commit comments