Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
16 changes: 14 additions & 2 deletions .github/ionic-issue-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ comment:
If the requested feature is something you would find useful for your applications, please react to the original post with 👍 (`+1`). If you would like to provide an additional use case for the feature, please post a comment.


The team will review this feedback and make a final decision. Any decision will be posted on this thread, but please note that we may ultimately decide not to pursue this feature.
Feedback is open for 90 days. After that, the team will review the feedback and make a final decision. Any decision will be posted on this thread, but please note that we may ultimately decide not to pursue this feature.


Thank you!
Expand Down Expand Up @@ -103,6 +103,14 @@ stale:
lock: true
dryRun: false

labelTimeout:
labels:
- label: "community feedback wanted"
days: 90
replaceWith: triage
maxIssuesPerRun: 100
dryRun: false

noReply:
days: 14
maxIssuesPerRun: 100
Expand All @@ -121,11 +129,15 @@ noReply:
lock: true
dryRun: false

noReproduction:
needsReproduction:
days: 14
maxIssuesPerRun: 100
label: "ionitron: needs reproduction"
responseLabel: triage
# a link to a repo outside ionic-team, like StackBlitz or CodeSandbox
# an attached file (not an image or video),
# or an Ionic component tag (<ion-badge> or <IonBadge>)
responsePattern: 'https?://(github\.com/(?!ionic-team/|user-attachments/assets/)[^/\s]+/[^/\s]+|gitlab\.com/|bitbucket\.org/|stackblitz\.com/|codesandbox\.io/)|<ion-?[a-z][a-z-]*'
exemptProjects: true
exemptMilestones: true
message: >
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [9.0.13](https://github.com/ionic-team/ionic-framework/compare/v9.0.12...v9.0.13) (2026-11-20)

### Bug Fixes

* **angular:** go back in browser history when popping to the previous view ([#31752](https://github.com/ionic-team/ionic-framework/issues/31752)) ([fd0ac5e](https://github.com/ionic-team/ionic-framework/commit/fd0ac5e9f340766e19f093852e596d67cd9b567a)), closes [#23448](https://github.com/ionic-team/ionic-framework/issues/23448) [#17752](https://github.com/ionic-team/ionic-framework/issues/17752) [#28307](https://github.com/ionic-team/ionic-framework/issues/28307)
* **breadcrumb, item-option:** pass rel to the link ([#31726](https://github.com/ionic-team/ionic-framework/issues/31726)) ([f07b030](https://github.com/ionic-team/ionic-framework/commit/f07b030521d76fea9a7099e42170ddcd62e11c61)), closes [#31725](https://github.com/ionic-team/ionic-framework/issues/31725)
* **datetime:** do not change max when the selected day does not exist in the new month ([#31489](https://github.com/ionic-team/ionic-framework/issues/31489)) ([17326e1](https://github.com/ionic-team/ionic-framework/commit/17326e1edce57938e416834a0dda96ca74890acb)), closes [#29124](https://github.com/ionic-team/ionic-framework/issues/29124) [#29124](https://github.com/ionic-team/ionic-framework/issues/29124)
* **datetime:** show all month values between the min and max years ([#31490](https://github.com/ionic-team/ionic-framework/issues/31490)) ([97420a3](https://github.com/ionic-team/ionic-framework/commit/97420a3692ee49839a5ac0302327304b564f0435))
* **deps:** update @stencil/core to v4.45.5 for ssr escaping ([#31791](https://github.com/ionic-team/ionic-framework/issues/31791)) ([6e16101](https://github.com/ionic-team/ionic-framework/commit/6e1610174f86cf3fa82bae9ae8781c24b98b3fed)), closes [#31792](https://github.com/ionic-team/ionic-framework/issues/31792)
* **deps:** update ionicons to v8.1.1 for svg sanitization fix ([#31790](https://github.com/ionic-team/ionic-framework/issues/31790)) ([2040b22](https://github.com/ionic-team/ionic-framework/commit/2040b22afd8a8236ebe6444ef52db88ffcff2118)), closes [#31789](https://github.com/ionic-team/ionic-framework/issues/31789)
* **footer:** fade the toolbar background out fully at the bottom ([#31771](https://github.com/ionic-team/ionic-framework/issues/31771)) ([ca4f2e6](https://github.com/ionic-team/ionic-framework/commit/ca4f2e67f9d388469e5e1f13787def6dbe65fa63)), closes [#31768](https://github.com/ionic-team/ionic-framework/issues/31768)
* **rtl:** use :dir() for rtl styles when the browser supports it ([#31744](https://github.com/ionic-team/ionic-framework/issues/31744)) ([7ecca28](https://github.com/ionic-team/ionic-framework/commit/7ecca28c17913ac5bf062e8937954516f005c0eb))


## [9.0.12](https://github.com/ionic-team/ionic-framework/compare/v9.0.11...v9.0.12) (2026-11-17)

### Bug Fixes
Expand Down
13 changes: 13 additions & 0 deletions core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [9.0.13](https://github.com/ionic-team/ionic-framework/compare/v9.0.12...v9.0.13) (2026-11-20)

### Bug Fixes

* **breadcrumb, item-option:** pass rel to the link ([#31726](https://github.com/ionic-team/ionic-framework/issues/31726)) ([f07b030](https://github.com/ionic-team/ionic-framework/commit/f07b030521d76fea9a7099e42170ddcd62e11c61)), closes [#31725](https://github.com/ionic-team/ionic-framework/issues/31725)
* **datetime:** do not change max when the selected day does not exist in the new month ([#31489](https://github.com/ionic-team/ionic-framework/issues/31489)) ([17326e1](https://github.com/ionic-team/ionic-framework/commit/17326e1edce57938e416834a0dda96ca74890acb)), closes [#29124](https://github.com/ionic-team/ionic-framework/issues/29124) [#29124](https://github.com/ionic-team/ionic-framework/issues/29124)
* **datetime:** show all month values between the min and max years ([#31490](https://github.com/ionic-team/ionic-framework/issues/31490)) ([97420a3](https://github.com/ionic-team/ionic-framework/commit/97420a3692ee49839a5ac0302327304b564f0435))
* **deps:** update @stencil/core to v4.45.5 for ssr escaping ([#31791](https://github.com/ionic-team/ionic-framework/issues/31791)) ([6e16101](https://github.com/ionic-team/ionic-framework/commit/6e1610174f86cf3fa82bae9ae8781c24b98b3fed)), closes [#31792](https://github.com/ionic-team/ionic-framework/issues/31792)
* **deps:** update ionicons to v8.1.1 for svg sanitization fix ([#31790](https://github.com/ionic-team/ionic-framework/issues/31790)) ([2040b22](https://github.com/ionic-team/ionic-framework/commit/2040b22afd8a8236ebe6444ef52db88ffcff2118)), closes [#31789](https://github.com/ionic-team/ionic-framework/issues/31789)
* **footer:** fade the toolbar background out fully at the bottom ([#31771](https://github.com/ionic-team/ionic-framework/issues/31771)) ([ca4f2e6](https://github.com/ionic-team/ionic-framework/commit/ca4f2e67f9d388469e5e1f13787def6dbe65fa63)), closes [#31768](https://github.com/ionic-team/ionic-framework/issues/31768)
* **rtl:** use :dir() for rtl styles when the browser supports it ([#31744](https://github.com/ionic-team/ionic-framework/issues/31744)) ([7ecca28](https://github.com/ionic-team/ionic-framework/commit/7ecca28c17913ac5bf062e8937954516f005c0eb))


## [9.0.12](https://github.com/ionic-team/ionic-framework/compare/v9.0.11...v9.0.12) (2026-11-17)

### Bug Fixes
Expand Down
20 changes: 10 additions & 10 deletions core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ionic/core",
"version": "9.0.12",
"version": "9.0.13",
"description": "Base components for Ionic",
"engines": {
"node": ">= 16"
Expand Down Expand Up @@ -66,8 +66,8 @@
"loader/"
],
"dependencies": {
"@stencil/core": "^4.45.4",
"ionicons": "^8.1.0",
"@stencil/core": "^4.45.5",
"ionicons": "^8.1.1",
"tslib": "^2.1.0"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions core/src/components/breadcrumb/breadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export class Breadcrumb implements ComponentInterface {
el,
inheritedAttributes,
last,
rel,
routerAnimation,
routerDirection,
separator,
Expand All @@ -203,6 +204,7 @@ export class Breadcrumb implements ComponentInterface {
: {
download,
href,
rel,
target,
};

Expand Down
16 changes: 16 additions & 0 deletions core/src/components/breadcrumb/test/breadcrumb.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { newSpecPage } from '@stencil/core/testing';

import { Breadcrumb } from '../breadcrumb';

describe('breadcrumb: rel', () => {
it('should set the rel attribute on the link', async () => {
const page = await newSpecPage({
components: [Breadcrumb],
html: `<ion-breadcrumb href="https://ionic.io" rel="noopener noreferrer">Ionic</ion-breadcrumb>`,
});

const link = page.body.querySelector('ion-breadcrumb')!.shadowRoot!.querySelector('a')!;

expect(link.getAttribute('rel')).toBe('noopener noreferrer');
});
});
31 changes: 31 additions & 0 deletions core/src/components/datetime/test/data.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
getToday,
getCombinedDateColumnData,
getTimeColumnsData,
getMonthColumnData,
} from '../utils/data';

// The minutes are the same across all hour cycles, so we don't check those
Expand Down Expand Up @@ -516,3 +517,33 @@ describe('getCombinedDateColumnData', () => {
]);
});
});

describe('getMonthColumnData()', () => {
const monthValues = [1, 3, 5, 7, 9, 11];
const getValues = (refParts: DatetimeParts, minParts?: DatetimeParts, maxParts?: DatetimeParts) =>
getMonthColumnData('en-US', refParts, minParts, maxParts, monthValues).map((option) => option.value);

it('should apply the min month only in the min year when monthValues is set', () => {
const minParts = { month: 6, day: 1, year: 2020 };

expect(getValues({ month: 5, day: 1, year: 2020 }, minParts)).toEqual([7, 9, 11]);
expect(getValues({ month: 3, day: 1, year: 2024 }, minParts)).toEqual([1, 3, 5, 7, 9, 11]);
});

it('should apply the max month only in the max year when monthValues is set', () => {
const maxParts = { month: 4, day: 30, year: 2025 };

expect(getValues({ month: 3, day: 1, year: 2025 }, undefined, maxParts)).toEqual([1, 3]);
expect(getValues({ month: 9, day: 1, year: 2024 }, undefined, maxParts)).toEqual([1, 3, 5, 7, 9, 11]);
});

it('should match the months shown when monthValues is not set', () => {
const minParts = { month: 6, day: 1, year: 2020 };
const maxParts = { month: 4, day: 30, year: 2025 };
const refParts = { month: 3, day: 1, year: 2024 };

const allMonths = getMonthColumnData('en-US', refParts, minParts, maxParts).map((option) => option.value);
expect(allMonths).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]);
expect(getValues(refParts, minParts, maxParts)).toEqual([1, 3, 5, 7, 9, 11]);
});
});
32 changes: 32 additions & 0 deletions core/src/components/datetime/test/manipulation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,38 @@ describe('validateParts()', () => {
})
).toEqual({ month: 1, day: 1, year: 2022, hour: 9, minute: 30 });
});
it('should not mutate the max parts when the day does not exist in the new month', () => {
// Selecting March 31 and then April on the month wheel produces April 31.
const maxParts = { month: 4, day: 20, year: 2024, hour: 23, minute: 59 };

expect(validateParts({ month: 4, day: 31, year: 2024, hour: 23, minute: 59 }, undefined, maxParts)).toEqual({
month: 4,
day: 20,
year: 2024,
hour: 23,
minute: 59,
});
expect(maxParts).toEqual({ month: 4, day: 20, year: 2024, hour: 23, minute: 59 });
});
it('should not mutate the min parts when the day does not exist in the new month', () => {
const minParts = { month: 3, day: 1, year: 2024, hour: 0, minute: 0 };

const result = validateParts({ month: 2, day: 31, year: 2024, hour: 0, minute: 0 }, minParts);
expect(result).toEqual({ month: 3, day: 1, year: 2024, hour: 0, minute: 0 });
expect(minParts).toEqual({ month: 3, day: 1, year: 2024, hour: 0, minute: 0 });
});
it('should move the time back in bounds when the fixed day lands on the max day', () => {
// February 31 becomes February 29, which is the max day, so the max time applies.
expect(
validateParts({ month: 2, day: 31, year: 2024, hour: 23, minute: 0 }, undefined, {
month: 2,
day: 29,
year: 2024,
hour: 20,
minute: 0,
})
).toEqual({ month: 2, day: 29, year: 2024, hour: 20, minute: 0 });
});
});

describe('getClosestValidDate()', () => {
Expand Down
9 changes: 7 additions & 2 deletions core/src/components/datetime/utils/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,15 @@ export const getMonthColumnData = (

if (monthValues !== undefined) {
let processedMonths = monthValues;
if (maxParts?.month !== undefined) {
/**
* The max and min months only apply to the
* max and min years. For example, with a max of
* 2025-03, every month of 2024 is still allowed.
*/
if (maxParts?.month !== undefined && maxParts.year === year) {
processedMonths = processedMonths.filter((month) => month <= maxParts.month!);
}
if (minParts?.month !== undefined) {
if (minParts?.month !== undefined && minParts.year === year) {
processedMonths = processedMonths.filter((month) => month >= minParts.month!);
}

Expand Down
16 changes: 13 additions & 3 deletions core/src/components/datetime/utils/manipulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export const validateParts = (
maxParts?: DatetimeParts
): DatetimeParts => {
const { month, day, year } = parts;
const partsCopy = clampDate({ ...parts }, minParts, maxParts);
const dayInMonth = { ...parts };

const numDays = getNumDaysInMonth(month, year);

Expand All @@ -351,11 +351,21 @@ export const validateParts = (
* is greater than the day we want
* to set, update the DatetimeParts
* day field to be the max days.
* This is done before clamping so that
* the fixed day is also checked against
* the min/max bounds.
*/
if (day !== null && numDays < day) {
partsCopy.day = numDays;
dayInMonth.day = numDays;
}

/**
* clampDate can return the minParts or maxParts
* object itself, so copy the result to avoid
* changing the bounds when updating the time below.
*/
const partsCopy = { ...clampDate(dayInMonth, minParts, maxParts) };

/**
* If value is same day as min day,
* make sure the time value is in bounds.
Expand Down Expand Up @@ -391,7 +401,7 @@ export const validateParts = (
* If value is same day as max day,
* make sure the time value is in bounds.
*/
if (maxParts !== undefined && isSameDay(parts, maxParts)) {
if (maxParts !== undefined && isSameDay(partsCopy, maxParts)) {
/**
* If the hour is out of bounds,
* update both the hour and minute.
Expand Down
8 changes: 7 additions & 1 deletion core/src/components/footer/footer.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ import { clamp } from '@utils/helpers';

export const handleFooterFade = (scrollEl: HTMLElement, baseEl: HTMLElement) => {
readTask(() => {
const scrollTop = scrollEl.scrollTop;
/**
* scrollTop can be fractional while scrollHeight and
* clientHeight are whole pixels. Rounding up lets a
* scroll at the very bottom reach maxScroll, so the
* toolbar background fades out completely.
*/
const scrollTop = Math.ceil(scrollEl.scrollTop);
const maxScroll = scrollEl.scrollHeight - scrollEl.clientHeight;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,30 @@ import { configs, test } from '@utils/test/playwright';

configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
test.describe(title('infinite-scroll: top'), () => {
test('should load more items when scrolled to the top', async ({ page, skip }) => {
// TODO(FW-6394): remove once flaky issue is resolved
skip.browser('webkit', 'Safari is flaky on CI');

test('should load more items when scrolled to the top', async ({ page }) => {
await page.goto('/src/components/infinite-scroll/test/top', config);

const ionInfiniteComplete = await page.spyOnEvent('ionInfiniteComplete');
const content = page.locator('ion-content');
const items = page.locator('ion-item');
expect(await items.count()).toBe(30);

/**
* Wait for infinite scroll to move the content to the bottom
* on load. The scroll must start outside the trigger zone
* (infinite scroll height + 100px threshold), otherwise the
* load fires from that initial scroll instead of from
* scrolling to the top.
*/
await expect
.poll(() =>
content.evaluate(async (el: HTMLIonContentElement) => {
const scrollEl = await el.getScrollElement();
return scrollEl.scrollTop;
})
)
.toBeGreaterThan(200);

await content.evaluate((el: HTMLIonContentElement) => el.scrollToTop(0));
await ionInfiniteComplete.next();

Expand Down
1 change: 1 addition & 0 deletions core/src/components/item-option/item-option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export class ItemOption implements ComponentInterface, AnchorInterface, ButtonIn
: {
download: this.download,
href: this.href,
rel: this.rel,
target: this.target,
};

Expand Down
13 changes: 13 additions & 0 deletions core/src/components/item-option/test/item-option.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,16 @@ describe('item option: tabindex', () => {
expect(nativeEl.getAttribute('tabindex')).toBe('0');
});
});

describe('item option: rel', () => {
it('should set the rel attribute on the link', async () => {
const page = await newSpecPage({
components: [ItemOption],
html: `<ion-item-option href="https://ionic.io" rel="noopener noreferrer">Ionic</ion-item-option>`,
});

const link = page.body.querySelector('ion-item-option')!.shadowRoot!.querySelector('a')!;

expect(link.getAttribute('rel')).toBe('noopener noreferrer');
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading