Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: V4 #781

Open
wants to merge 2,420 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
2420 commits
Select commit Hold shift + click to select a range
5e18355
Merge tag 'v4.0.0-beta.106' into v4_swc-search
kholstinin Jul 15, 2024
857c18c
chore: updated log
kobezzza Jul 15, 2024
ed7eb02
fix: fixed tests
kobezzza Jul 15, 2024
b86d781
Update src/components/super/i-block/README.md
kobezzza Jul 15, 2024
1bab52b
chore: added comments & stylish refactoring
kobezzza Jul 15, 2024
230b20f
chore: added comments
kobezzza Jul 15, 2024
256f2e4
fix: xss
kobezzza Jul 15, 2024
5d91b63
Merge pull request #1171 from V4Fire/v4-new-init
kobezzza Jul 15, 2024
378e3b7
chore: :up: 4.0.0-beta.108.a-new-hope
kobezzza Jul 15, 2024
8edb0a3
fix: revert vue in scripts
kholstinin Jul 15, 2024
7d310bb
test: add tests for fixes
misbiheyv Jul 16, 2024
074a640
docs: append CHANGELOG
misbiheyv Jul 16, 2024
602fd6c
update monic-loader (#1335)
boikovdv Jul 16, 2024
6a2a668
fix: vue in fathtml
kholstinin Jul 16, 2024
be8a5c4
docs: update unreleased versions in changelog to v4.0.0-beta.108
shining-mind Jul 16, 2024
f803680
:up: 4.0.0-beta.109
shining-mind Jul 16, 2024
4b31f30
Merge branch 'v4' into v4_swc-search
kholstinin Jul 16, 2024
eb2a17b
chore: review fixes
misbiheyv Jul 16, 2024
cef07b9
Merge branch 'v4' into EDADEACLORECASE-2985
shining-mind Jul 16, 2024
00ddba2
fix(page-meta-data): page description element now expect to have tag…
miniven Jul 16, 2024
d13cf61
Merge branch 'v4' into EDADEACLORECASE-2985
shining-mind Jul 16, 2024
c368f7c
chore: stylish fixes
kobezzza Jul 16, 2024
bb614cb
chore: stylish fixes
kobezzza Jul 16, 2024
9f46e67
chore: stylish fixes
kobezzza Jul 16, 2024
0d328f7
tests(core/component/directives/attrs): fix duplicate test name
shining-mind Jul 16, 2024
1c40978
chore(core/component/directives/attrs): fix linter errors in test hel…
shining-mind Jul 16, 2024
549f7a9
Merge pull request #1330 from V4Fire/EDADEACLORECASE-2985
kobezzza Jul 16, 2024
cabd078
feat: rollback external vue
kholstinin Jul 16, 2024
8446456
feat: removed swc for vue
kholstinin Jul 17, 2024
ec1b0eb
fix(core/index): use global session instance (#1339)
geopr Jul 17, 2024
2e4884d
feat: disable setImmediate polyfill
kholstinin Jul 17, 2024
798e8f2
:up: 4.0.0-beta.110
shining-mind Jul 17, 2024
8c4995b
fix: ts
kholstinin Jul 17, 2024
4d3a9a1
Merge branch 'v4' into v4_swc-search
kholstinin Jul 17, 2024
6a146f7
fix: ts
kholstinin Jul 17, 2024
dde1835
changelog
kholstinin Jul 17, 2024
b0ed380
chore: updated tests
kobezzza Jul 17, 2024
ab4d4d1
chore: removed dead code
kobezzza Jul 17, 2024
c4fec80
feat: rename legacy to build edition
kholstinin Jul 18, 2024
ddba08a
revert export default
kholstinin Jul 18, 2024
8e3f9e6
Monic loader up v4 (#1344)
boikovdv Jul 18, 2024
81578c4
:up: 4.0.0-beta.111
shining-mind Jul 18, 2024
01ca6db
docs: update changelog
shining-mind Jul 18, 2024
6a8da31
feat: add a `rootContent` wrapper block
Jul 19, 2024
051e35a
Fix `wrapWithDirectives` in vue3 engine (#1346)
misbiheyv Jul 19, 2024
91565b0
Router fix (#1347)
kobezzza Jul 19, 2024
a68a154
fix: review issues
kholstinin Jul 22, 2024
dc0c1bf
fix(b-dynamic-page): page change and async render race fixed (#1349)
shining-mind Jul 22, 2024
6a03eb3
:up: 4.0.0-beta.112
shining-mind Jul 22, 2024
6343bfc
fix(friends/data-provider): wrap response data with async options (#1…
ItMaga Jul 24, 2024
cd98a72
:up: 4.0.0-beta.113
shining-mind Jul 24, 2024
671890d
Bonkalol/virtual scroll memoize first chunk (#1293)
bonkalol Jul 24, 2024
1176200
:up: 4.0.0-beta.114
shining-mind Jul 24, 2024
e616ee9
fix #1275 (#1308)
boikovdv Jul 26, 2024
7b0c0de
:up: 4.0.0-beta.115.the-force-awakens
shining-mind Jul 26, 2024
5259210
fix: moved out toJson in hydrationStore
kholstinin Jul 27, 2024
33ddf9d
feat: singleton jsdom in ssr render
kholstinin Jul 29, 2024
b1492d4
feat: dom in core/const
kholstinin Jul 29, 2024
cf34fe0
fix: test
kholstinin Jul 29, 2024
4a7e8e6
:up: 4.0.0-beta.116
kholstinin Jul 29, 2024
eb071e3
fix: review issues
kholstinin Jul 29, 2024
2832210
revert toJson externalize
kholstinin Jul 29, 2024
242893c
Merge pull request #1361 from V4Fire/ssr_improve
kholstinin Jul 29, 2024
e208a71
Add workflow to deploy to NPM on release
aabounegm Jul 29, 2024
9c2289f
docs: update changelogs
Jul 29, 2024
031741e
Update CHANGELOG.md
shining-mind Jul 29, 2024
0f5bb3f
Merge branch 'v4' into dimeliora/i-block-root-content-wrapper
shining-mind Jul 29, 2024
d6595ca
Merge pull request #1350 from V4Fire/dimeliora/i-block-root-content-w…
Dimeliora Jul 31, 2024
4c996de
🆙 4.0.0-beta.117
Jul 31, 2024
6bc0ba6
Merge pull request #1362 from V4Fire/release-ci-v4
aabounegm Jul 31, 2024
8f14bce
fix(b-router/modules/transition): fix promises collision (#1367)
geopr Aug 1, 2024
70dcf7b
Fix setting cookie (#1359)
bunin-av Aug 2, 2024
e691d1a
🆙 4.0.0-beta.119
Aug 2, 2024
36e00fb
fix: add p.source external check
kormanowsky Jul 30, 2024
fdbacf9
chore: up docs
kormanowsky Aug 2, 2024
c7d151c
:up: changelog, version
kormanowsky Aug 2, 2024
cef12e2
chore: update typedef
kormanowsky Aug 2, 2024
daadf41
Merge branch 'v4' into v4_swc-search
kholstinin Aug 5, 2024
94e2a8e
fix: eslint errors
kholstinin Aug 5, 2024
09f05fe
Merge pull request #1340 from V4Fire/v4_swc-search
kholstinin Aug 5, 2024
43bd4f7
fix: jest ci tests
kholstinin Aug 5, 2024
afdd5ec
Merge pull request #1375 from V4Fire/fix_tests
shining-mind Aug 5, 2024
be5fec1
Disable reactive prop 2 new init force props (#1338)
kobezzza Aug 5, 2024
1c5fba9
:up: 4.0.0-beta.121.the-phantom-menace
shining-mind Aug 5, 2024
98c4d82
New gc (#1353)
kobezzza Aug 6, 2024
af268b7
docs: stylish fixes
kobezzza Aug 6, 2024
fea4362
chore: fixed log
kobezzza Aug 6, 2024
6b5b26e
chore: :up: 4.0.0-beta.122
kobezzza Aug 6, 2024
b9b1b2f
fix: autoprefixer browserslist
kholstinin Aug 8, 2024
8efc99f
docs: write changelogs and up verision
misbiheyv Aug 9, 2024
0c7f9ff
Merge pull request #1380 from V4Fire/fix_autoprefixer
misbiheyv Aug 9, 2024
4a07a2c
update monic-loader to 3.0.5 (#1384)
boikovdv Aug 12, 2024
fb2e0d7
chore: :up: v4.0.0-beta.124
kobezzza Aug 12, 2024
017f2d4
fix: swc for node build (#1386)
kholstinin Aug 12, 2024
7d698c6
chore: :up: v4.0.0-beta.125
kobezzza Aug 12, 2024
5590898
docs(core/dom/intersection-watcher): add disclaimers about the once o…
shining-mind Aug 12, 2024
c56055c
issues/1389
bonkalol Aug 13, 2024
d762d0e
:art: changelog
bonkalol Aug 13, 2024
a848576
:art:
bonkalol Aug 13, 2024
2eea6c1
Added measure of createBlock and renderList
bonkalol Aug 16, 2024
278e109
fix component name
bonkalol Aug 16, 2024
bd6f44f
fix(b-dynamic-page)!: fix updating of same page component
gretzkiy Jul 30, 2024
348f1b0
feat(docs): changelog and readme
gretzkiy Aug 23, 2024
e313549
Merge pull request #1394 from V4Fire/fix/b-dynamic-page-same-page-upd…
gretzkiy Aug 26, 2024
6bae2f5
4.0.0-beta.126
gretzkiy Aug 26, 2024
2b14bdf
fix rgxp (#1393)
bunin-av Aug 29, 2024
208ddc9
:up: v4.0.0-beta.127
Aug 29, 2024
906588d
Merge branch 'v4' into kormanowsky/lib-source-external-v4
kormanowsky Aug 29, 2024
b171443
fix: check p.source first, p.inline later
kormanowsky Aug 29, 2024
e2766f4
chore: update readme.md to contain terminated typedef for LibSource
kormanowsky Aug 29, 2024
897ed6e
chore: fix normalization of the forceUpdate props declared as `*Prop`…
shining-mind Sep 3, 2024
d4ef591
:up: 4.0.0-beta.128
shining-mind Sep 3, 2024
49ecc8b
chore: up version 4.0.0-beta.129
kormanowsky Sep 4, 2024
b84026d
Merge branch 'v4' into kormanowsky/lib-source-external-v4
kormanowsky Sep 4, 2024
c8038c0
Merge pull request #1373 from V4Fire/kormanowsky/lib-source-external-v4
kormanowsky Sep 4, 2024
c615539
fix bug with re-rendering in `v-safe-html` (#1405)
misbiheyv Sep 5, 2024
6c40592
Enhanced filesystem cache invalidation criteria by including the curr…
boikovdv Sep 9, 2024
b58e5f4
V4 autoprefixer (#1406)
kholstinin Sep 11, 2024
bb1c6c4
Fix legacy build (#1412)
shining-mind Sep 12, 2024
1e37dcd
:up: 4.0.0-beta.132
shining-mind Sep 12, 2024
6a7be64
fix(components/friends/data-provider): support for the recursive `dro…
geopr Sep 13, 2024
8f340f4
change style loaded check way (#1418)
boikovdv Sep 16, 2024
764194c
chore: stylish fixes
kobezzza Sep 16, 2024
300da63
chore: :up: 4.0.0-beta.134
kobezzza Sep 16, 2024
98a99d1
fix: router replace query merging (#1421)
misbiheyv Sep 17, 2024
f51e0c5
fix: sanitize hydration store (#1419)
bunin-av Sep 17, 2024
b08c92f
fix(i-block): apply async.proxy for the global event listeners (#1429)
shining-mind Sep 20, 2024
9111f0f
Remove excess spaces from the component's HTML output (#1432)
shining-mind Sep 24, 2024
f6b5e8e
:up: 4.0.0-beta.137
shining-mind Sep 24, 2024
8aacb8f
Dsl speedup (#1388)
kobezzza Oct 1, 2024
43ac574
:up: 4.0.0-beta.138.dsl-speedup
shining-mind Oct 1, 2024
01d9119
Speedup 2 (#1434)
kobezzza Oct 3, 2024
3567509
fix(wrapCreateBlock): set children as null for functional component v…
shining-mind Oct 3, 2024
7f76479
:up: 4.0.0-beta.140
shining-mind Oct 3, 2024
9ee2ebf
fix(core/component/engines/vue3): do not call destructor recursively …
shining-mind Oct 3, 2024
8f3c5ff
:up: 4.0.0-beta.141
shining-mind Oct 3, 2024
b7486e1
fix(swc): disable external helpers for snakeskin (#1431)
kholstinin Oct 4, 2024
90b6fe5
:up: 4.0.0-beta.142
shining-mind Oct 4, 2024
14fd38b
fix(i-data): `componentStatus` updating after component destroying (#…
ItMaga Oct 9, 2024
0d8d8bf
:up: 4.0.0-beta.143
shining-mind Oct 9, 2024
9386bb7
fix(core/component/decorators): override component name in meta (#1448)
ItMaga Oct 9, 2024
dcece2a
🆙 4.0.0-beta.144
Oct 9, 2024
b2102ff
fix(b-dynamic-page): avoid undefined page rendering (#1453)
ItMaga Oct 14, 2024
87f8b3c
fix(SystemThemeExtractorWeb): use addListener in case if addEventList…
shining-mind Oct 14, 2024
c1711dc
fix(build): detect functional smart component (#1449)
ItMaga Oct 14, 2024
a97bf22
:up: 4.0.0-beta.145
shining-mind Oct 14, 2024
c273282
fix(core/component/watch): always watch $attrs (#1458)
shining-mind Oct 18, 2024
1175507
:up: 4.0.0-beta.146
shining-mind Oct 18, 2024
3a55227
fix: wait container ref
misbiheyv Oct 23, 2024
3521916
chore: reset changes
misbiheyv Oct 23, 2024
9c9a6c6
fix(b-list): fix the bug with previous active element not loosing its…
gretzkiy Oct 25, 2024
923e794
chore(b-list): add changelog
gretzkiy Oct 25, 2024
7e4d25a
chore(b-list): add tests for focus removal
gretzkiy Oct 25, 2024
e39eb7f
Update CHANGELOG.md
gretzkiy Oct 25, 2024
ff76131
Merge pull request #1469 from V4Fire/fix/b-list-prev-focus
gretzkiy Oct 25, 2024
91c7ffb
4.0.0-beta.147
gretzkiy Oct 25, 2024
679a2c0
fix(core/shims): import ssr shims only in SSR (#1464)
shining-mind Oct 28, 2024
c575c59
feat(core/component/render): add normalizer for forceUpdate props (#1…
shining-mind Oct 28, 2024
23bc065
:up: 4.0.0-beta.148
shining-mind Oct 28, 2024
9aacc0e
feat: add `v-safe-on` directive (#1454)
ItMaga Oct 31, 2024
c15e436
:up: 4.0.0-beta.149
Oct 31, 2024
503435c
fix(core/component/engines/vue3): do not log component info for speci…
shining-mind Nov 2, 2024
0aff844
chore: revert ssr shims (#1477)
shining-mind Nov 5, 2024
8435b47
:up: 4.0.0-beta.150
shining-mind Nov 5, 2024
cb5e60b
Исправление рендера вложенных чанков в SSR (#1459)
miniven Nov 6, 2024
f415f09
Fix/ssr prop getters admit (#1470)
miniven Nov 6, 2024
76386cb
fix(page-meta-data): handle quotation marks in query selector (#1476)
miniven Nov 6, 2024
fdd5344
:up: 4.0.0-beta.151
shining-mind Nov 6, 2024
b59046b
:rocket: Added trackContentSwipes to b-bottom-slide (#1480)
dmitrybrovka Nov 11, 2024
a779b61
:up: version
Nov 11, 2024
25c3a1f
fix(bBottomSlide): replace `await` with `SyncPromise` when setting mo…
ItMaga Nov 14, 2024
05f5374
fix(core/component/watch): correct fix of $attrs watching (#1490)
shining-mind Nov 15, 2024
6a710af
fix(i-block/activation): reload for unloaded component or with `reloa…
ItMaga Nov 15, 2024
e3c65ac
fix(decorators/prop): forceUpdate override fix; fix typo prop -> prop…
miniven Nov 15, 2024
eb4d33f
Fix ref tests (#1487)
shining-mind Nov 15, 2024
256db5f
fix(core/component): implement lazy loading of the components' templa…
shining-mind Nov 15, 2024
a567a71
:up: 4.0.0-beta.153
shining-mind Nov 15, 2024
c925ed3
Speedup 3 1 (#1438)
kobezzza Nov 19, 2024
80bbce0
:up: 4.0.0-beta.154.dsl-speedup-3
shining-mind Nov 19, 2024
11e3df5
Disabled props normalization for web components; fixed g-slider (#1491)
bonkalol Nov 20, 2024
98d18f7
:up: 4.0.0-beta.155
bonkalol Nov 20, 2024
94ce6c3
Now items processors will be generated only for the first render and …
bonkalol Nov 25, 2024
3791183
:art: changelog
bonkalol Nov 25, 2024
323a91f
:art: linters
bonkalol Nov 25, 2024
ae2b4b2
Fix typo
bonkalol Nov 25, 2024
02f974d
:up: v4.0.0-beta.156
bonkalol Nov 25, 2024
e95ebdc
fix(core/router/modules): added default getter for the route blueprin…
shining-mind Nov 25, 2024
aa59313
:up: 4.0.0-beta.157
shining-mind Nov 25, 2024
fe59f3f
chore(deps): up @v4fire/core
gretzkiy Nov 23, 2024
e2bb39d
chore(prelude/webpack): enhance error logging
gretzkiy Nov 23, 2024
f78e79f
chore(deps): up @v4fire/core
gretzkiy Nov 26, 2024
07fce12
Merge pull request #1494 from V4Fire/chore/enhance-styles-status-erro…
gretzkiy Nov 26, 2024
a1695d9
4.0.0-beta.158
gretzkiy Nov 26, 2024
95f420a
Fix decorator default value (#1498)
shining-mind Nov 27, 2024
c239c64
:up: 4.0.0-beta.159
shining-mind Nov 27, 2024
5578671
Geoprv/responsive images loader (#1011)
geopr Dec 3, 2024
0b0c6e1
Fix watching for separate attributes in `$attrs` (#1500)
gretzkiy Dec 3, 2024
ac0b220
:up: 4.0.0-beta.161
shining-mind Dec 3, 2024
6cc234e
Fixed an issue with changed touches was not provided in gestures test…
bonkalol Dec 4, 2024
b828b69
:art: changelog
bonkalol Dec 4, 2024
df05c03
:up: 4.0.0-beta.162
bonkalol Dec 4, 2024
4b8e9a7
refactor(bRouter): avoid restoring scroll position with `soft` transi…
ItMaga Dec 5, 2024
81db7da
🆙 4.0.0-beta.163
Dec 5, 2024
dc4f52b
Wrap inline scripts in iife (#1505)
shining-mind Dec 6, 2024
b7e394d
:up: 4.0.0-beta.164
shining-mind Dec 6, 2024
58fcdeb
fix(b-dynamic-page): add "flush: sync" for the page watcher (#1506)
shining-mind Dec 9, 2024
6b71dc4
fix(core/component/watch): binding non-promise handler for custom wat…
ItMaga Dec 9, 2024
335c563
🆙 4.0.0-beta.165
Dec 9, 2024
c937376
Optional g hint (#1508)
bonkalol Dec 10, 2024
69397cc
:up: 4.0.0-beta.166
bonkalol Dec 10, 2024
ee1ecf5
fix(directive): shoul call beforeUnmount hook of directive on functio…
gretzkiy Dec 12, 2024
2949593
chore(changelog): add changelog
gretzkiy Dec 12, 2024
11e81b5
Merge pull request #1513 from V4Fire/fix/func-component-directive-bef…
gretzkiy Dec 12, 2024
80824b2
4.0.0-beta.167
gretzkiy Dec 12, 2024
9d02a54
fix(activation): do not call component reloading twice on activation …
gretzkiy Dec 13, 2024
a1c64bc
:up: 4.0.0-beta.168
shining-mind Dec 13, 2024
e202e59
chore: rewrite measurements as decorator
kormanowsky Dec 16, 2024
e6a85e7
chore: shorten if for performance.measure
kormanowsky Dec 16, 2024
3b16f7b
fix: move enableMeasurement check outside of wrapper for original func
kormanowsky Dec 16, 2024
aa97637
chore: use const instead of let for start
Dec 16, 2024
5c4045c
fix: move measurement() call before calling start = perf.now()
Dec 16, 2024
4277479
chore: call() -> apply()
Dec 17, 2024
8b1c407
Merge branch 'v4' into kormanowsky/issues/1389
kormanowsky Dec 17, 2024
8764fb4
:up: @v4fire/core (#1512)
bonkalol Dec 17, 2024
b11acd7
:up: 4.0.0-beta.169
bonkalol Dec 17, 2024
c4746ae
fix: try to avoid Symbol() instead of component name in perf report
kormanowsky Dec 18, 2024
190c868
chore: allow measurement name function to return null
kormanowsky Dec 18, 2024
7097b1f
chore: do not measure createElementBlock()
kormanowsky Dec 18, 2024
ad14f57
chore: remove getComponentMeta(), enableMeasurement
kormanowsky Dec 18, 2024
09fc891
Merge branch 'v4' into kormanowsky/issues/1389
kormanowsky Dec 18, 2024
8097ef8
chore: fix linters
kormanowsky Dec 18, 2024
9851e36
chore: fix review comment
kormanowsky Dec 18, 2024
9e68a94
Revert "chore: remove getComponentMeta(), enableMeasurement"
kormanowsky Dec 19, 2024
5bc1593
chore: fix doc
kormanowsky Dec 19, 2024
b6b4efd
fix: IS_PROD check corrected
kormanowsky Dec 19, 2024
f63ccea
chore: :up: version
kormanowsky Dec 19, 2024
46c9b13
Merge pull request #1517 from V4Fire/kormanowsky/issues/1389
kormanowsky Dec 19, 2024
abf1f99
feat(core/component): runtime checker for web-components
gretzkiy Dec 19, 2024
3cb7787
chore(changelog): add changelog
gretzkiy Dec 20, 2024
da53a05
feat(build/snakeskin): normalize v-attrs to directive for web compone…
shining-mind Dec 23, 2024
6b27305
Merge branch 'v4' into feat/web-component-runtime
shining-mind Dec 23, 2024
7346a1b
chore(changelog): update changelog
gretzkiy Dec 23, 2024
d55ae33
Merge pull request #1518 from V4Fire/feat/web-component-runtime
gretzkiy Dec 23, 2024
4b53d17
chore(version): update changelog
gretzkiy Dec 23, 2024
1f71b7d
4.0.0-beta.171
gretzkiy Dec 23, 2024
87fa84c
chore(deps): up @v4fire/core
gretzkiy Dec 25, 2024
4666f80
chore!: support renaming `Function.prototype.once` to `memoize`
gretzkiy Dec 25, 2024
db707dc
Merge pull request #1520 from V4Fire/fix/remove-once-fn-proto
gretzkiy Dec 25, 2024
de0aa6d
chore(deps): up @v4fire/core
gretzkiy Dec 25, 2024
817ff8d
4.0.0-beta.172
gretzkiy Dec 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Changelog

_Note: Gaps between patch versions are faulty, broken or test releases._

## v4.0.0-beta.147 (2024-10-25)

#### :bug: Bug Fix

* Fixed the bug with previous active element not loosing its focus state `bList`

## v4.0.0-beta.146 (2024-10-18)

#### :bug: Bug Fix
Expand Down
6 changes: 6 additions & 0 deletions src/components/base/b-list/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ Changelog
> - :house: [Internal]
> - :nail_care: [Polish]

## v4.0.0-beta.147 (2024-10-25)

#### :bug: Bug Fix

* Fixed the bug with previous active element not loosing its focus state

## v4.0.0-beta.26 (2023-09-20)

#### :bug: Bug Fix
Expand Down
4 changes: 4 additions & 0 deletions src/components/base/b-list/modules/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export function setActiveMod(this: bList, el: Element, isActive: boolean): void

this.block.setElementMod(el, 'link', 'active', isActive);

if (!isActive && el instanceof HTMLElement) {
el.blur();
}

if (el.hasAttribute('aria-selected')) {
el.setAttribute('aria-selected', String(isActive));
}
Expand Down
13 changes: 13 additions & 0 deletions src/components/base/b-list/test/unit/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,17 @@ test.describe('<b-list>', () => {
[[0, 1], [0], 'active']
]);
});

test('should remove focus from previous active element', async ({page}) => {
const
target = await renderList(page);

const links = await page.locator(`${createListSelector('link')}`);

await links.first().click();
await test.expect(links.first()).toBeFocused();

await target.evaluate((ctx) => ctx.setActive(1));
await test.expect(() => test.expect(links.first()).not.toBeFocused()).toPass();
});
});
Loading