fix: console error fixed of qb-285

This commit is contained in:
Snigdha Snigdha
2020-01-09 15:11:11 +05:30
parent 71bf25e8fb
commit 730f35a83c
2 changed files with 8 additions and 8 deletions

View File

@@ -4,18 +4,18 @@ import HeaderPadding from './header-padding.jsx';
import Tooltip from '../tooltip/index.jsx';
class RowHeader extends React.PureComponent {
constructor (props) {
constructor(props) {
super(props);
this.handleSelect = this.handleSelect.bind(this);
}
// fixes the console error on row selected values
handleSelect () {
// fixes the console error on row selected values
handleSelect() {
const { component, entry } = this.props;
component.selectValues(0, [entry.elementNumber], false);
}
render () {
render() {
const { entry, rowStyle, styleBuilder, styling, component } = this.props;
const inEditState = component.inEditState();

View File

@@ -4,17 +4,17 @@ import { HEADER_FONT_SIZE } from '../initialize-transformed';
import Tooltip from '../tooltip/index.jsx';
class ColumnHeader extends React.PureComponent {
constructor (props) {
constructor(props) {
super(props);
this.handleSelect = this.handleSelect.bind(this);
}
// fixes console error for column selected values
handleSelect () {
// fixes console error for column selected values
handleSelect() {
const { component, entry } = this.props;
component.selectValues(1, [entry.elementNumber], false);
}
render () {
render() {
const { baseCSS, cellWidth, colSpan, component, entry, styling } = this.props;
const inEditState = component.inEditState();
const isMediumFontSize = styling.headerOptions.fontSizeAdjustment === HEADER_FONT_SIZE.MEDIUM;