Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit 61197cb

Browse files
yarikletosalvan13
authored andcommitted
Fixed useless update. (#35)
* Fixed useless update. * Fixed version of lib
1 parent 602d781 commit 61197cb

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.8.4]
8+
### Fixed
9+
- Fixed useless `logIndex` update.
10+
711
## [2.8.3]
812
### Fixed
913
- Fixed missing reference to a component in native mode

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@noriginmedia/react-spatial-navigation",
3-
"version": "2.8.3",
3+
"version": "2.8.4",
44
"description": "HOC-based Spatial Navigation (key navigation) solution for React",
55
"main": "dist/index.js",
66
"files": [

src/spatialNavigation.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,9 @@ class SpatialNavigation {
374374
return;
375375
}
376376

377-
this.logIndex++;
377+
if (this.debug) {
378+
this.logIndex += 1;
379+
}
378380

379381
const eventType = findKey(this.getKeyMap(), (code) => event.keyCode === code);
380382

0 commit comments

Comments
 (0)