Skip to content

Commit

Permalink
fixed missing combobox indiator for the path field in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Jun 5, 2020
1 parent 9d4250d commit 1cb26e3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
10 changes: 9 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,12 @@
color: #09d3ac;
}


input::-webkit-calendar-picker-indicator {
display: none;/* remove default arrow */
}
.myarrow:after {
content: url(images/arrow.png);
margin-left: -20px;
padding: .1em;
pointer-events:none;
}
30 changes: 17 additions & 13 deletions src/ControlHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import { Observer } from "mobx-react";
import { httpGetAsync } from "./URL";
import PropTypes from "prop-types";

import "./App.css";
class ControlHeader extends React.Component {
shift(percentage) {
const beginBin = this.props.store.getBeginBin();
Expand Down Expand Up @@ -165,18 +165,22 @@ class ControlHeader extends React.Component {
</span>
<div className={"row"}>
Jump to path at nucleotide position:
<input
type="string"
list="path"
placeholder={"path"}
onChange={(event) =>
this.props.store.updatePathNucPos(
event.target.value,
this.props.store.pathNucPos.nucPos
)
}
style={{ width: "80px" }}
/>
<span class="myarrow">
<input
type="string"
list="path"
name="path"
placeholder={"path"}
id="#show-suggestions"
onChange={(event) =>
this.props.store.updatePathNucPos(
event.target.value,
this.props.store.pathNucPos.nucPos
)
}
style={{ width: "80px" }}
/>
</span>
<datalist id="path">
{this.props.schematic.pathNames.map((item, key) => (
<option key={key} value={item} />
Expand Down
Binary file added src/images/arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 1cb26e3

@AndreaGuarracino
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#86 Firefox missing combobox indicator solution taken from here: https://stackoverflow.com/questions/31041925/datalist-arrow-not-coming-in-ie-and-firefox

Please sign in to comment.