Here is the parent class:
export default class RosterTableUtil{
constructor() {
let highLightCellIndex = -1, highLightRowIndex = -1;
................
this.updateUI = (cellIndex, rowIndex) => {
highLightCellIndex = cellIndex;
highLightRowIndex = rowIndex;
}
}
}
Here is the child class:
import RosterTableUtil from "./RosterTableUtil";
export default class RosterSchedulerTableUtil extends RosterTableUtil{
constructor(){
super();
.............
this.updateUI = (cellIndex, rowIndex) => {
super.updateUI(cellIndex, rowIndex);
updateSelectRegion(cellIndex, rowIndex);
}
}
}
When the RosterSchedulerTableUtil.updateUI function is called, I got the following error:
Uncaught TypeError: (intermediate value).updateUI is not a function
How can I fix the problem?