waibu-bootstrap 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ function formatSentence (item, params) {
10
10
  if (this.params.attr.expanded) attr.rounded = 'width:0'
11
11
  merge(attr, omit(item, ['component', 'icon', 'ohref', 'html']))
12
12
  if (this.params.attr.text && !attr.active) attr.text = this.params.attr.text
13
- if (!isSet(attr.active)) attr.active = this.component.req.url.startsWith(attr.href)
13
+ if (!isSet(attr.active)) attr.active = this.component.req.url.split('?')[0] === attr.href
14
14
  if (!attr.active) attr.background = 'color:transparent'
15
15
  const result = [`<c:${cmp}`]
16
16
  for (const k in attr) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-bootstrap",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Bootstrap suport for Waibu Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  - [2.2.0] Start using simplified ```webAppCtx```
6
6
  - [2.2.1] Bug fix on ```sidebar``` widget
7
+ - [2.2.2] Bug fix on ```sidebar``` widget
7
8
 
8
9
  ## 2026-02-04
9
10